[920]
Small bugfix for after condition in AjaxHelper::remoteFunction
[922]
Fixed Ticket #224
Added patch from Ticket #221
Added patch from Ticket #222
Renamed renderMethod() to requestAction() the name fits better since we are really requesting another objects response.
Added a default setting to turn of autoRender for the class you are requesting the action from,
this will allow you to request an action and use the return how you like, instead of letting the object output the content
directly to the browser if it would normally do so.
[929]
Adding fix for Itcket #225.
Moved code for beforeFilters to first section of Controller::constructClasses().
Removed current implementaion of beforeFilters. This will be changed to pass
a reference of the object to the filters through a core filters class.
The core filter class will then load the filters and perform all request on the object in the order the
filters are arranged in var $beforeFilters, each beforeFilter needs to be a class that the core filter class will create
an instance of. If one of the filters fails, it will return the object, untouched and not try to process other filters, an
failed var will be set on the controller.
This will be done before data base is initialized for the current object that is being filtered.
Modifed the requestAction() changes are noted below
Using inside of a controller.
Default
$this->requestAction('/controller/action/argument/');
Request Object to render output directly
$this->requestAction('/controller/action/argument/', a('render'));
Using a helper object to make request inside of a view:
Default
$helpername->requestAction('/controller/action/argument/');
Request Object to render output directly
$helpername->requestAction('/controller/action/argument/', a('render'));
Using the View object "$this" in a view to make request:
$this->requestAction('/controller/action/argument/');
Request Object to render output directly
$this->requestAction('/controller/action/argument/', a('render'));
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@930 3807eeeb-6ff5-0310-8944-8be069107fe0
[913]
Refactoring Dispatcher and Scaffold classes.
Removed Dispatcher::scaffoldView() and added it to
Scaffold::_scaffoldView() less coupling between the 2 classes now
[914]
Adding settings to fix issue when using get_class() in PHP 4.
If value of var $casedClas is set in controller this name will be Inflected to the proper table name if underscores are used
in the database.
[915]
Added suggestion from ticket #220
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@917 3807eeeb-6ff5-0310-8944-8be069107fe0
Refactoring Dispatcher::dispatch() created a private Dispatcher::_invoke().
Removed code that was no longer used by Dispatcher
Refactored duplicate code in Object::renderMethod();
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@912 3807eeeb-6ff5-0310-8944-8be069107fe0
[905]
Refactoring renderMethod() moving to object class to make it available to whole system
[908]
Bug fixes to ticket #219.
Added bug fixes I found in code.
Fixed Router::parse(); which only checked lower case strings
Refactored renderAction method. Moved to object class to allow all classes to access the method now.
This will allow a User object to make a request to a Permsissions object checking.
For example: You have a User object that needs to check its permission to access
User object would make are request to Permission object.
$accces = $this->renderAction('/permission/allow/userid/');
You would then be able to use the results of $access in your controller.
To check this in the view
$accces = $html->renderAction('/permission/allow/userid/');
Simple as that.
[906]
Added sortable() to AjaxHelper as a method of creating sortables,
and refactored a fair amount of the code.
[907]
Coding standard corrections.
removed blank line at end of paths.php file
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@910 3807eeeb-6ff5-0310-8944-8be069107fe0
helpers can now use this like a url to get methods return value:
$helpername->renderMethod('/controller/action/param/');
Refactored dispatcher.
Adding bug fix by nate in [894] [896]
Added extra param View::renderMethod()
Fixed bug related to #72, #111, #113, #209
Some of those tickets where closed as duplicates already
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@900 3807eeeb-6ff5-0310-8944-8be069107fe0