I had an authentication problem in cakephp, when positing credentials from an external site the authentication would work, and then get immediately lost, with the site prompting for login information again.
This guy determined that the cakephp session cookie was changing. His solution was to set security to low.
Seems like in mediu...
I just wondering for table field naming e.g. first_name.
in the data model. Is it ok i name as first_name also?
Or must i change to firstName?
Thanks
...
Hi everybody,
I'm relatively new to CakePHP, but I am proficient in Rails.
So I know the concepts of AJAX and everything else.
In a site that I'm working....a particular URL works fine when requested from the client/browser.
The same URL doesn't work when requested via AJAX calls.
Do I have to make any configuration changes?
Here i...
In cakePHP, does anyone have any experience creating a custom Session handler that records extra information to the database.
Say you wanted to record the IP and the User Id (if they login using Auth) to the sessions table using a custom handler. Where would you start?
I have seen the cakebook, but it doesn't talk about custom database...
I have a cakePHP app with my DB servers configured in the app/config/
database.php file. However, I need to use the get_cfg_var
('mysql.default_host') to get the host name because the client does
not want the name hardcoded. I would appreciate a quick response
regarding where the changes need to be made.
Thanks
...
I am using $form->input('Model.name', array('multiple'=>'checkbox');
I am trying to base on model data to set certain checkboxes to checked.
How can i do that?
...
I'm using cakephp and would like to display all Submissions which are part of Category 'X'
I have 4 tables with a HABTM relationship.
Users -> (haveMany) -> Submissions <-> (hasAndBelongsToMany) <-> Categories
but I would like to do so using the $this->paginate() and for each submission I would like to display the user who posted the s...
Just a few days ago I found out about this miracle called CakePHP so I am pretty green to it.
I need to build a mail application, so I have followed the convention and created:
Database description:
Table of users <user_id (primary key), fname, lname>.
Table of mails <mail_id(primary key), from (foreign key to user_id), to (foreign ...
OK, I am little bit lost...
I am pretty new to PHP, and i am trying to use CakePHP for my web-site.
my DB is composed of two tables:
users with user_id, name columns
copies with copy_id, copy_name, user_id (as foreign key to users) columns.
and I have the matching CakePHP elements:
User and Copy as a model
UserController as con...
Hi,
I have an application with multiple regions and various incoming links. The premise, well it worked before, is that in the app_controller, I break out these incoming links and set them in the session.
So I have a huge beforeFilter() in my *app_controller* which catches these and sets two variables in the session. Viewing.region and...
Hello,
I have a login form where a user (that is not logged yet) can insert his login and password, after filling these fields the user has to press a submit button.
What i'm trying to do is: Replace the normal submit button for a $html->link with some css styles.
So is there anyway I can use something like this:
<span class = "licit...
hi,
Actually i am working on a web site and on that site i want to add two more features like,
Incoming google links:
Incoming yahoo links:
when user write his web site url in text box then the result show below the total incoming google and yahoo links.
If anyone has the knowledge of this, then please help, waiting,,thanks
...
Hi all,
I've recently come across CakePhp as an excellent framework and am currently porting over my site to cake. In terms of using JQuery, what is the currently recommended method for including the javascript / accessing the javascript files. Doing a little digging, some people have suggested a central place in app/config ... what...
Currently several of my unit tests need common functions such as logging in a specific user from the mock objects or making sure that no one is logged in. I currently have those functions in a file which I include via a regular old include statement. That doesn't seem very cakey to me. I also don't want to keep typing the include statem...
I'm trying to mimic a reddit feature. When you link to a specific comment in a threaded list (example), you can add a var 'context' in the url to show the context.
I can show you the comment I want you to see, plus a parent (context=1) or the parent's parent (context=2) and so on.
Now, cakePHP simplifies the threaded thing with find('th...
I'm starting to write unit tests using the CakePHP framework and SimpleTest. The documentation describes a problem with the testAction method when your controller redirects the browser to another page. There is a hopeful note with a link to a possible fix, but the link is broken.
Has anybody gotten this working? Know how to find where t...
how to open & use cakephp i18n console ????s
...
I am interested in finding out how folks are deploying their CakePHP applications. I have recently been approached about doing some freelance CakePHP development, which would be a nice opportunity for me to get some experience in the presentation tier (in my FT job I do Java EE development in the business and persistence tiers).
My thou...
My scope of knowledge on php Frameworks is limited to 4, CakePHP, Symphony, Zend and CodeIgniter (sort by preference)
I want to know which one I could choose to build my personal CMS (which suits best for that purpose) ..
Best,
...
I wanted to implement a search feature in my cakephp application. I found this article for implementing cakephp search.
http://bakery.cakephp.org/articles/view/search-feature-to-cakephp-blog-example
It had a google code repository found here:
http://code.google.com/p/searchable-behaviour-for-cakephp/
Things seemed to work okay until ...