Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #1

Merged
merged 122 commits into from
Jun 9, 2023
Merged
Changes from 1 commit
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
5beb6a4
fix not necessary double equal sign
elitGithub Jun 22, 2022
30da36a
Merge pull request #94 from elitGithub/trongate-typo-fix-for-core-file
trongate Jun 22, 2022
a28c848
A few tweaks and corrections to do with the form validation helper. …
trongate Jun 24, 2022
9541541
Merge branch 'master' of github.com:davidjconnelly/trongate-framework
trongate Jun 24, 2022
4998587
Previously, Trongate websites without a properly configured database …
trongate Jun 24, 2022
12006b1
Correction to APPPATH and updated readme file.
trongate Jun 28, 2022
14e57d7
Simplified config.php by moving APPPATH and REQUEST_TYPE definitions …
trongate Jun 29, 2022
0397943
update readme file
TATIYA Jul 9, 2022
4510aec
Merge pull request #95 from TATIYA/patch-1
trongate Jul 10, 2022
ac10eba
Close model with Escape key
DaFa66 Jul 21, 2022
18900af
Minor tweak to shorten code
DaFa66 Jul 21, 2022
6b9eec3
Merge pull request #96 from DaFa66/master
trongate Jul 21, 2022
ad0e081
README.md: fix download link
giulioprinaricotti Aug 7, 2022
3123d58
Merge pull request #100 from giulioprinaricotti/patch-1
trongate Aug 9, 2022
7fb7ad8
Update trongate-datetime.js
ReDeLe-design Aug 14, 2022
ded22ff
Update trongate-datetime.js
ReDeLe-design Aug 15, 2022
8d7fdfc
Update to fix Implicit conversion
DaFa66 Aug 29, 2022
4fd5a93
Spelling fixes
toddy15 Aug 29, 2022
b247133
Some more spelling fixes
toddy15 Aug 30, 2022
ec5c607
A tweak to the default welcome view file. No big deal.
trongate Aug 31, 2022
3a7b586
Merge branch 'master' of github.com:davidjconnelly/trongate-framework
trongate Aug 31, 2022
4e42e75
Merge pull request #108 from DaFa66/master
trongate Aug 31, 2022
f2b147b
Merge pull request #109 from toddy15/main
trongate Aug 31, 2022
f738650
Merge branch 'master' of github.com:davidjconnelly/trongate-framework
trongate Aug 31, 2022
bbcbaf7
Removed unnecessary / unused 'pagination' method from Trongate.php. …
trongate Aug 31, 2022
bb49cef
Added spinner class to Trongate CSS. Now you can have a nice little …
trongate Aug 31, 2022
0b1f2da
A few improvements and tweaks to the Model class -> basically making …
trongate Aug 31, 2022
d382dd8
Trongate now has the ability to display in-field form validation erro…
trongate Sep 1, 2022
8dfd0e6
Changed GitHub URL for Trongate framework repo.
trongate Sep 1, 2022
f6fc1ec
Correction to validation helper callbacks. Correction to 'public' te…
trongate Sep 6, 2022
87524a4
Fix error from rewrite for form field validation.
toddy15 Sep 8, 2022
3de585b
Errors with more than one Date-Picker / Clear Date
ReDeLe-design Sep 8, 2022
fbdefe3
typo
ReDeLe-design Sep 8, 2022
abe61be
Correction to validation helper.
trongate Sep 9, 2022
0c7fe60
Merge pull request #112 from toddy15/main
trongate Sep 9, 2022
d3ccd30
Merge pull request #102 from ReDeLe-design/master
trongate Sep 9, 2022
42669b4
added dynamic properties trait in preparation for PHP 8.2
trongate Sep 18, 2022
9e56333
CSS Tweaks: Added 'blink' class to Trongate CSS and also added a 0.6…
trongate Sep 22, 2022
142e908
fix deprecation and add non-Latin characters
DaFa66 Sep 27, 2022
2ac86ee
3 Oct 2022, 8:21 pm
DaFa66 Oct 3, 2022
244f87f
Merge pull request #118 from DaFa66/url_title-fix
trongate Oct 3, 2022
a147564
4 Oct 2022, 11:02 am
DaFa66 Oct 4, 2022
4d8e91d
4 Oct 2022, 11:03 am
DaFa66 Oct 4, 2022
e361f3b
Merge pull request #121 from DaFa66/url_title-fix
trongate Oct 4, 2022
a006a24
Correction to validation errors.
trongate Oct 4, 2022
b1eeafe
fix get method
DaFa66 Oct 5, 2022
77e47c9
Merge pull request #122 from DaFa66/model-fix
trongate Oct 5, 2022
70ee658
Fixed image uploader.
trongate Oct 5, 2022
a0af23e
Changed license number to 1.3.3037
trongate Oct 5, 2022
583be74
added function onto validation helper for filtering out potentially m…
trongate Oct 6, 2022
a251a96
Improved 'unique' method on validation helper (making it much more st…
trongate Oct 7, 2022
eed5008
Correction on validation_helper.
trongate Oct 7, 2022
fe8f257
Refined GET method on the Model.php file.
trongate Oct 7, 2022
cbe28ef
Changed expected argument type from mixed to object on dynamic_proper…
trongate Oct 10, 2022
b80319b
Improved build_additional_includes method on Template.php. Previousl…
trongate Oct 12, 2022
82a7d81
correction to build_additional_includes() method inside Template cont…
trongate Oct 14, 2022
8f87c65
correction to TrongateCSS - now making cursor auto upon td hover (pre…
trongate Oct 14, 2022
8618e77
1). improved post method true feature. 2). added attempt_truncate() …
trongate Oct 20, 2022
e2ecff4
now automatically converting posted numbers to type of int or double …
trongate Oct 24, 2022
ada2edb
correction to Templates controller (there was a typo that was creatin…
trongate Nov 12, 2022
0a1d665
typo correction
trongate Nov 12, 2022
a2156ce
improved app.js and admin.js so that side nav only gets activated whe…
trongate Nov 13, 2022
c634e52
moved ip_address() function from Trongate.php into url_helper.php so …
trongate Nov 13, 2022
74f986e
now auto-trimming $_POST vars before form validation happens;
trongate Nov 13, 2022
8d28767
Have now made ignition.php (not bootstrap.php) the start point for th…
trongate Nov 28, 2022
a8e8d68
Changed version number to 1.3.3038
trongate Nov 28, 2022
6b73864
added class onto Trongate CSS for making sure image widths do not exc…
trongate Dec 17, 2022
016ea55
Replaced insecure string generator with a secure one
Dec 19, 2022
0b2522f
Make length parameter have a default value
Dec 19, 2022
b47b2f3
Make expression more clear
Dec 23, 2022
bbd75d1
Merge pull request #133 from Piraatje/master
trongate Dec 24, 2022
fac17f4
Added new and improved filter_string() function to form_helper. This…
trongate Dec 24, 2022
c63df5e
improved filter_string() function and added new filter_name() functio…
trongate Dec 26, 2022
cae402c
correction on filter_name()
trongate Dec 26, 2022
3229610
Fixed make_rand_str() - previously it returned a string with a length…
trongate Jan 1, 2023
b32bb60
Changed to v1.3.3039 - this new version number brings an assortment o…
trongate Jan 1, 2023
4c85ee1
tweaked sql_autoload_register inside ignition.php for improved compat…
trongate Jan 2, 2023
feac308
Correction to file uploader. Documentation has been updated. For fu…
trongate Jan 10, 2023
de11061
vastly improved file and image uploaders - please refer to docs of re…
trongate Jan 14, 2023
a88ef1d
Allow save to module
DaFa66 Jan 21, 2023
b7f2eca
Merge pull request #135 from DaFa66/file-uploader-enhanced
trongate Jan 21, 2023
05bf1dc
Improve file uploader (thank you, Dafa!) and improved CSRF protection…
trongate Jan 21, 2023
f8cb115
Updated license - now at v1.3.3042. See release notes for more details.
trongate Jan 21, 2023
423791f
correction to csrf_protection on validation helper
trongate Jan 23, 2023
6d93faf
updated default homepage message
trongate Feb 1, 2023
0805a81
correction to filter_string() function - previously it was not preser…
trongate Feb 11, 2023
eea100c
removed unique from validation helper
trongate Feb 11, 2023
72cbf0c
Chanaged the way the Model class gets loaded. This means that it is …
trongate Feb 11, 2023
feac523
changed license number to 3.3.3044
trongate Feb 12, 2023
9007578
Correction to valid_email method
trongate Mar 15, 2023
ccb68d9
No need for an else clause, just initialize $user_level before if sta…
chr1974 Mar 31, 2023
e9ee4a1
Changed to oneliner, to get rid of if else clause
chr1974 Apr 1, 2023
aa22e35
fixed wrong var string in array
chr1974 Apr 1, 2023
8ceed19
Merge pull request #139 from chr1974/master
trongate Apr 3, 2023
f49c214
REBUILT API MANAGER
trongate Apr 3, 2023
4504c2e
correction to fetch_query_params_from_url() function on Standard_endp…
trongate Apr 3, 2023
e420637
Correction to Trongate_administrators - update ID now being converted…
trongate Apr 3, 2023
0340e2b
Added fallback that handles 'Get By Post' requests as if they are 'Se…
trongate Apr 10, 2023
8b00e5a
Renamed 'Get By Post' API endpoints to 'Search'.
trongate Apr 10, 2023
486490e
Correction to Trongate filezone (not displaying uploaded images corre…
trongate Apr 10, 2023
7ea8ee8
1) Added type hinting and return types to the Trongate.php class. A…
trongate Apr 16, 2023
8ffe103
Fixed type errors and added doc blocks
DaFa66 Apr 18, 2023
2564991
Merge pull request #142 from DaFa66/master
trongate Apr 19, 2023
c664734
Fixed some return types that were giving syntax errors
DaFa66 Apr 19, 2023
0240959
Merge pull request #143 from DaFa66/master
trongate Apr 19, 2023
9d771a0
made top links on default admin template more meaningful
trongate Apr 26, 2023
646104d
Fault Fix: extract() data function moved from ignition.php to Tronga…
trongate Apr 26, 2023
2dd6f23
Correction: reintroduced extract() to ignition.php.
trongate Apr 26, 2023
a8cbce1
Correction, now extracting data array if isset
trongate Apr 26, 2023
5e668a0
Correction to closeModal() - function now attempts to remove element …
trongate Apr 27, 2023
234a677
Correction to view method (thank you DaFa66!)
trongate Apr 28, 2023
074dca6
Correction to view method and removed old view code (thank you DaFa66!)
trongate Apr 28, 2023
c710a1b
Removed several weak warnings.
trongate Apr 28, 2023
b731fea
Reinstate $data['view_module']
DaFa66 Apr 29, 2023
22148e1
Merge pull request #144 from DaFa66/master
DaFa66 Apr 29, 2023
041df71
Correction to api_auth() method
trongate Apr 29, 2023
887ea2d
Merge branch 'master' of github.com:trongate/trongate-framework
trongate Apr 29, 2023
ea22f4b
Changed engine number to 1.3.3045
trongate Apr 29, 2023
0109601
Correction: tokens should only be collected from header - not from co…
trongate Apr 29, 2023
137f022
adjustment to CSS so that only the first label on the page gets a top…
trongate Apr 29, 2023
09e2a62
Fixed error being thrown when using normal view from a sub module
DaFa66 May 2, 2023
98e39ec
Merge pull request #146 from DaFa66/master
trongate May 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
A few improvements and tweaks to the Model class -> basically making …
…sure update ids are integers.
  • Loading branch information
trongate committed Aug 31, 2022
commit 0b1f2da17a0fecf77d01768c30b79a33d8de599f
12 changes: 3 additions & 9 deletions engine/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function get_where_custom($column, $value, $operator='=', $order_by='id',
//fetch a single record
public function get_where($id, $target_tbl=NULL) {

$data['id'] = $id;
$data['id'] = (int) $id;

if (!isset($target_tbl)) {
$target_tbl = $this->get_table_from_url();
Expand Down Expand Up @@ -320,12 +320,6 @@ public function get_max($target_tbl=NULL) {

}

//get result set as array of objects
public function resultSet() {
// $this->execute();
// return $this->stmt->fetchAll(PDO::FETCH_OBJ);
}

public function show_query($query, $data, $caveat=NULL) {
$keys = array();
$values = $data;
Expand Down Expand Up @@ -438,7 +432,7 @@ public function update($update_id, $data, $target_tbl=NULL) {
$sql = rtrim($sql, ', ');
$sql.= " WHERE `$target_tbl`.`id` = :id";

$data['id'] = $update_id;
$data['id'] = (int) $update_id;
$data = $data;

if ($this->debug == true) {
Expand All @@ -456,7 +450,7 @@ public function delete($id, $target_tbl=NULL) {
}

$sql = "DELETE from `$target_tbl` WHERE id = :id ";
$data['id'] = $id;
$data['id'] = (int) $id;

if ($this->debug == true) {
$query_to_execute = $this->show_query($sql, $data, $this->query_caveat);
Expand Down