in CakePHP book example here
I try:
cake bake all
then I choose 1 for Group
but i get an error
Notice: Undefined property: ModelTask::$useDbConfig in /opt/lampp/htdocs/acl_cake/cake/console/libs/tasks/model.php on line 848
Fatal error: ConnectionManager::getDataSource - Non-existent data source in /opt/lampp/htdocs/acl_cake/cake/libs...
I haven't found a good resource in using # in urls to enable bookmarking with ajax calls so I have a few questions.
We have a site based on CakePHP using 'pretty' urls essentially www.mysite.com/controller/action/param1:param2 I noticed that Facebook uses a weird syntax with their pretty urls ex) #!/?ref=logo
Is there a way we can use ...
Where do I put my inflections in CakePHP 1.3? I am new to Cake
...
Hi
I have a CakePHP installation in a sub folder in my server, I want to install another application inside that subfolder:
root/public_html/subfolder/cake/
root/public_html/subfolder/app/
etc. now I need a custom application installed there:
root/public_html/subfolder/my_custom_application/
I have something like this in my .htac...
I have string like "Venditoris: Beware of Scams » Blog Archive » Trilegiant Complaints ..." in Database but when I try to display it ,It is not displaying.
So,I used html_entity_decode function but still it is not display.
I am Using cakePHP.below is my code to display that links.
echo $html->link(html_entity_decode(
$listing_end_a...
I am new to cake PHP.
I want to load a combobox in a form. hw can i do it ??
also i m using jquery but don't want to use prototype lib for js.
thanx in advance.
...
Hi folks,
I am trying to pop up an iframe from a bookmark whose contents are from my test app. The test app doesn't do much but let me log in and set some session vars. First I developed this using Perl's Catalyst framework, and it worked great. I could log in to the test app in some window, or the iframe, and it would keep the session ...
I am working on my senior project, and the topic that we agreed on was a CMS that similarly to Drupal would make things easier by providing robust administration capabilities
Some of them include:
Content type and data field creation (CCK)
Views Creation
complex user management (tasks and roles)
the ability to add third party modules lat...
I have admin routing enabled. How can I set routing, to make http://website.com/admin go to posts/admin_index?
I've got this:
Router::connect('/', array('controller' => 'posts', 'action' => 'index'));
But it doesn't seem to work. I get this error (when going to http://website.com/admin):
Missing Controller
Error: Controller could n...
What I need to accomplish is a single Application with a single database but multiple accounts (companies), each with multiple users.
The URL convention must be as follows: domain.com/account/controller/action
So ALL controllers are prefixed by the company/account name.
All accounts would share the single database, but each one would ...
I've got a series of Post models that hasAndBelongsToMany Media models. In certain function calls inside of the Post model, I don't need to retrieve the entire list of Media models. However, when I use the following code:
$this->unbindModel( array('hasAndBelongsToMany' => array('Media')) );
// Rebind to get only the fields we need:
$t...
Can anyone please tell me how I can "enable" CakePHP's Helper auto-completion in CakePHP? Essentially so when, for instance, I type $form-> it gives me a list of $form's methods and variables.
I have read http://bakery.cakephp.org/articles/view/model-based-code-insight-and-completion-in-netbeans and also tried to implement comment #3. W...
Hi,
I have a system that connects to 2 popular APIs. I need to aggregate the data from each into a unified result that can then be paginated. The scope of the project means that the system could end up supporting 10's of APIs.
Each API imposes a max limit of 50 results per request.
What is the best way of aggregating this data so that...
I've been successfully using CakePHP's email component to send my email but due to restrictions I now need to set it up to use a smtp relay server and I'm getting some strange results.
Here is my code:
$this->Email->to = $user['User']['username'].' <'.$user['User']['email'].'>';
$this->Email->subject = 'MyWebsite.com – Please confirm y...
Here's a quickie that I assume has a simple answer (maybe? Hopefully?), but I just can't find one:
I'm using the "cake" console in cakephp on Mac OS X 10.6.2. How do I set up the environment variable (or PATH?) so that all I need to type in terminal is "cake"... as opposed to the full path to the console app?
I'm unabashedly a newb wh...
I'm using
$form->input("time")
to render select boxes for time input. They have minute-accuracy, which I don't need.
How could I limit the select lists to quarters (XX:00, XX:15, XX:30, XX:45)?
...
Hello!
I have a small problem. I am making a site that has Tags and Questions. I have a Question model, Tag model, QuestionsTag model, everything fits together nicely. The user upon asking something puts the tags in the field seperated by a space (foo bar baz) much like on stackoverflow.com.
Now, here is the code to check if a tag alre...
Below I have pasted code snippets of a page where it displays cars by year and model. This list is paginated. For this example, imagine that you go to page 5 of the list displayed. At the bottom of the page, there is a form that lets you refine your search. When you fill in another year and model and push "Search", it reloads the pag...
Hi I got a search filter page and I have a field that's a multiple select so it's value is an array. Is it possible to pass that input's value (w/c is an array) as a parameter or should I use sessions?
Thanks!
...
e($form->select('gender',array('Male'=>'Male','Female'=>'Female'),null,'selected'=>'Female',false));
...