Hi, I'm trying to move a CakePHP app from a Windows Apache setup to a GoDaddy shared IIS7 setup. It's been easy to migrate except for the Apache mod_rewrite part -- which obviously wouldn't work in IIS7. I basically have no url rewriting capability, which is crucial for Cake to work. GoDaddy now offers MS URL Rewriter, but they don't off...
I want to understand the sequence of steps how it is verified that a user has permission to particular application page ('Acl', 'Auth', 'Security' components are used). For example, a visitor clicks a link on another site that directs him to my application. What is the sequence of steps that my application does to verify that this user h...
So we have a real-estate-related site that has controller/action pairs like "homes/view", "realtors/edit", and so forth. From on high it has been deemed a good idea to refactor the site so that URLS are now in the format "/realtorname/homes/view/id", and perhaps also "/admin/homes/view/id" and/or "/region/..."
As a mere CakePHP novice ...
What is the difference between using AuthComponent::allowedActions and AuthComponent::allow?
When I Google, I see the majority of examples and documents using or talking about allow(), but only a few using allowedActions. But they both seem similar in usage.
...
What are the cakePHP usages/meanings of the model, lft, and rght fields in a acos table?
Similarly, what are the usages/meanings of the lft and rght fields in a aros table?
...
Does CakePHP check inputs to see if they are valid and not injections? If not, how would I go about implementing functions to check inputs? Most of Cake's processes are done behind the scenes, so I'm unsure of where I would do that.
...
Hi everyone,
I am writing a CakePHP application to log the work I do for various clients, but after trying for days I seem unable to get it to do what I want. I have read most of the book CakePHP's website.
and googled for all I'm worth, so I presume I am missing something obvious!
Every 'log item' belongs to a 'sub-project, which in...
Hello all,
I've developed a small framework that was needed for the firm that I work. The problem is I've not made a full level framework, as developers are finding tough time to understand what is what, So I made a simple structure with
app/controllers,
app/models,
app/views
so that they can clearly separate the code and can get us...
Hi,
I am learning cakephp in an autodidact manner and I am a complete newbie :) I am creating a simple application. Some logic work so now I going to dive into designing views and layouts.
I read the docs and the tutorial but I could not find where to set the content of $script_for_layout.
Especially I want to set a $html->css to create...
Hi all,
Today I've got a problem when I tried using following code to alter the model attribute in the controller
function userlist($trigger = 1)
{
if($trigger == 1)
{
$this->User->useTable = 'betausers'; //'betausers' is completely the same structure as table 'users'
}
$users = $this->User->find('all');
deb...
How i add CTP Extension using following method but it is not worked can any one help me ?
Open preferences.
Select Miscellaneous tab.
Select Files sub-tab thing.
Click on New file extension and enter tpl.
Select the mime type.
Click ok. Done!
...
I'm creating a page that's a search result...
When you're viewing one of the results, at the bottom of the page, I need to insert "Next result" and "Previous result" links, like a pagination... But from [I think] a saved search, right?
How you people would do this?
Obs.: I'll use CakePHP (PHP) and MySQL
--
Update:
The problem is not...
JsHelper cant to use in elements ? I try use it (JsHelper) but not work.
And one other question: was AjaxHelper deprecate in cakePHP 1.3 ?. I read document but dont see notice, i only see JavascriptHelper was deprecated.
...
Hi,
I'm trying to use Zend Lucene with CakePHP.
I'm seeing this error now.
Notice (8): Hex number is too big: 0x100000000 [APP/vendors/Zend/Search/Lucene/Storage/File.php, line 271]
Does anyone know how to fix that?
Thanks,
Tee
...
I was looking at examples on the CakePHP website, in particular hasOne used in linking models.
http://book.cakephp.org/view/78/Associations-Linking-Models-Together
My question is this, is CakePHP using two queries to build the array structure of data returned in a model that uses hasOne linkage?
Taken from CakePHP:
//Sample results fro...
I use cakePHP and it generate ajax
/animemanga/animes/search/page:1?type%5B0%5D=3&genre%5B0%5D=20&genre%5B1%5D=4&info%5B0%5D=episodes&info%5B1%5D=released&info%5B2%5D=rating&info%5B3%5D=synopsis&info%5B4%5D=completed&info%5B5%5D=rating_count&info%5B6%5D=name&info%5B7%5D=id&info%5B8%5D=name&...
An example:
$this->Parent->Behaviors->attach('Containable');
$parent = $this->Parent->find('first', array(
'contain' => array('Child' => array(
'order' => 'Child.order ASC',
)),
)
);
Child has translated data and parent isn't using translatable. When I fetch the child data this way it'...
I'm getting ready to deploy a CakePHP site for the first time. I'm using the site with a MySQL database, and I'm still a little unclear about the proper use of users & permissions for MySQL -- I'm talking about the "login" and "password" fields that appear in app/config/database.php. During development, I've been using 'root' and 'root' ...
Hi when saving to a model, my created and modified fields aren't automatically populated by CakePHP. It was automatically populated when I was using MySQL but now it isn't. I'm not using NOW() back when I was still using MySQL. Why is it? Also when a field's value is not set 'NULL' (with quotes) is inserted causing errors because SQL Ser...
Has anyone used Php frameworks just like we have in Python(Django) and Java(Spring).
I want to use something which has end to end solutions. ORM tools, transaction mangement, logging etc.
I am not sure how Cake is?
But, I am looking something very similar to Django in Php.
...