Cakephp Search for MySQL
Which implementation of a text based search for a Cakephp application which uses a MySQL database is "best"? ...
Which implementation of a text based search for a Cakephp application which uses a MySQL database is "best"? ...
Hello, I am trying to create a basecamp like login where users can login to see their companies projects using the url: http://abc.com/companyname/ I dont know how to create a 2 level auth... (one at the company level and another at the user level) I am new to cakePHP and I dont know how to modify the in built Auth component for my requ...
I have a multi-select box named Manufacturer Name that is displaying correctly, even clickable for multi search. When I run the search I am not getting any results from my database using the complex find conditions I set. I've tried to use Complex-Find-Conditions from the bakery, and other various websites but no avail. //This my in...
I want to understand how Configure::write('Config.language','fre'), do I have to call this function in beforFilter() methode ? when i call it does it save the the configuration in session or it does not save at all ? ...
Hi, As per subject, I would like to be able to use __() function call in my cakephp shell. I've tried importing l10n to the shell to no avail App::import('Core', 'l10n'); Any help is appreciated, many thank's! EDIT: I will probably add more info. The __() call is successful, but it's outputting the input string instead of translat...
Hello, I am new to CakePHP and trying desperately to learn! My most recent struggle is with the Email Component. I have a contract. When I create the contract, I add a user. When I save the new contract...for the first time, I want to send an email to the user in that contract that allows them to click on a link back to the contract, ...
What's the best practice to add a simple active flag to a user record that the AuthComponent will respect during the login sequence? I have a simple boolean field in my user table. That flag needs to be set to allow the user to login. Otherwise, they get the normal "You can't login" error. I've googled around and can't find any good ...
I am currently working on an export function in cakephp app and im doing a query that is getting around 10,000 rows each export which cake can handle but debug_kit seems to be using lot of memory and putting me over 128mb of memory used. I have tried tried writing this in the top of the function but debugkit is still getting involved an...
I have a field called Hobbies, I wish to store all the hobbies selected by the user to be stored in the database as CSV. How can I do this in Cakephp? ...
Hello all, I've got a somewhat complicated question for you cakephp experts. Basically, I have created a db table called "locations". Every month I will get this table sent to me in csv format from a client. Unfortunately, instead of updating this table, I will have to empty it and reimport all of the records. Unfortunately, I cannot al...
I'm converting a flat list into a tree in my CakePHP app and found that there is an existing behavior that has this functionality. My table is not one giant tree, but consists of many user-generated trees: basically, each user can create their own folder structure. However it seems that the Tree Behavior would only keep track of lft/rght...
Hello Cake Experts, I want to display xml file in broswer: for example: http://www.mysite.com/myfile.xml I know there is code snippet on net: App::import('Xml'); $file = "filename.xml"; $parsed_xml =& new XML($file); $parsed_xml = Set::reverse($parsed_xml); but this one display an array of the xml file. How c...
This site is built using CakePHP 1.2* I have an element that needs to be placed in multiple views under multiple controllers. This element is very dynamic, every time a page is loaded it needs to call a function (which is rather large) and then display what was returned. There are a few options that I have thought of, none of which I ...
hi, im doing a custom validation but it does not display error message when invalidated. do you know where is the problem? I think the problem might be in the invalidate function. do you know how to set it up for the nested validation like this one? var $validate = array( 'receiver' => array( 'maxMsg' => array( '...
I'm new to CakePHP. I'm keen to use the scaffolding feature to quickly generate views, and then to use bake to generate views that I can edit. I have created custom scaffold views in app/views/scaffolds so that my scaffolded views fit in with the layout of my application. Is there any way that, when I bake views, they are based on the c...
Hi, I have following models: - Agenda (id, user_id, event_id) -> belongsto Event, User - Event (id, etc) -> hasmany Agenda - User (id, city_id, etc) -> hasmany Agenda, belongsto City - City (id, name) -> hasmany User While in the Agendas controller, I want to display the City.name of an user that has a certain event_id in his Agendas. ...
I want to query as below in cakePHP.so, How can I do query using 'find' function of cakePHP . Help me. SELECT DISTINCT(Property.City),'city' as Fieldname FROM `properties` as Property WHERE Property.City LIKE 'las%' ...
I recently posted a question about the CakePHP email component, and, with the help of some of the answers and comments, was able to resolve my problem... The thing is, solving my email problem revealed another problem! So, here's my problem: I have a contract that has a client associated with it. When I create a contract, I select a c...
Hi! I have and existing application in CakePHP with a database. The task is to apply translate behavior to its models. The problem is that i18n.php script just creates _i18n table but doesn't copy existing data to this table. Don't you know any script that could do that? Thanks for any help. ...
Hello, I created a function that has a infinite loop and a delay at the end to make sure it will only execute one time per second. This function is in a shell class and its goal is to save/update records in three different tables and I invoque it from the console line using the command 'cake className' My problem is: I stop the loop ...