Search Discussions
-
Hi. I need users to belong to more than one role. Like "Can-do-this", "Can-do-that", etc. I think a many-to-many relationship fits this need. Like this (in pseudo-sql) table users: id int primary ...
Rihad
May 15, 2012 at 6:47 pm
Nov 2, 2012 at 3:57 pm -
This has got to be a newbie question. I have searched, but can't seem to find an answer. Is there a way to get an error code for why the delete or beforeDelete failed and have this passed back to the ...
Bs28723
May 28, 2012 at 3:49 pm
May 30, 2012 at 3:47 pm -
Did anyone encountered this error: [PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cakehr.cake_errors' doesn't exist ? I have no idea why this is happening. The problem is ...
Florin Trifu
May 5, 2012 at 4:20 pm
May 24, 2012 at 10:26 pm -
I have Auth set up as 'authorize' = 'controller' so Cake calls isAuthorized() for each url. The problem is, when my isAuthorized() returns false (meaning user has no rights), he gets redirected to ...
Rahajiyev
May 24, 2012 at 7:03 am
May 29, 2012 at 4:42 pm -
Hi, I am just about relaunching a website and they gave out tons of QR Codes with links like: www.domain.com/detail.php?id=1234 What can I do to catch all this domains having the "details.php?Id=" ...
Heohni
May 8, 2012 at 1:43 pm
May 16, 2012 at 10:05 am -
Hello, i'm trying to force logout after I close the browser but I don't know how to do it. If I close the browser without logging out and then I go back to the application the user is still logged ...
Andrés Manikis
May 31, 2012 at 2:48 pm
May 31, 2012 at 8:19 pm -
Can anyone tell me how to display images from my database to my webpage. i upload the images in database using longblob datatype. anyone help plz.. -- Our newest site for the community: CakePHP Video ...
Teji
May 21, 2012 at 10:34 am
May 22, 2012 at 9:23 am -
I have downloaded cakephp 2.0 I'm learning cakephp, and try to bake model, controller and views... I have bake a project to.. But then I have see that the code generated by the bake script is ...
Gabrielem
May 8, 2012 at 8:36 pm
May 14, 2012 at 7:41 am -
Hello, I'm using cake 2.1 with AuthComponent and standard data modelusers. How I can edit a user without changing the password? For example, add a check "I want to change the password." If thischeck ...
Lsri8088
May 28, 2012 at 7:37 pm
Sep 12, 2013 at 12:59 pm -
*Cake *PHP 2. *public *$useTable = 'Accounts'; /** * Primary key field * * *@var* string */ *public *$primaryKey = 'AccountID'; *public *$hasMany = *array*( 'Address' = *array*( 'className' = ...
Hill180
May 24, 2012 at 12:50 am
May 25, 2012 at 8:07 am -
Hello Everyone.. i have an array whose print_r() output is Array ( [deadlines] = Array ( [deadline] = Array ( [0] = Array ( [date] = 12/10/2011 [text] = My First Project Completed ) [1] = Array ( ...
Teji
May 23, 2012 at 11:21 am
May 23, 2012 at 2:01 pm -
When user enters his current password for verification it compares unequal to his real password. Here's my custom validation rule function: public function check_current_password($current_password) { ...
Rahajiyev
May 18, 2012 at 12:49 pm
May 22, 2012 at 8:14 am -
This is not a holy war statement. After looking at Yii, getting the two books and reading and watching a lot of the tutorials, making a small app in Yii. I think I am going to stay with Cake. 1 ...
Hill180
May 23, 2012 at 2:35 am
Jul 4, 2013 at 8:47 am -
I have two models: Users and Surveys. In my Users "index" view, each User row has two select lists that are populated with the names of all the available Surveys. The idea is to allow someone to ...
Benjamin Allison
May 26, 2012 at 1:10 am
May 28, 2012 at 9:12 pm -
Hi all, What behavior / component / plugin is everyone using for geocoding these days? I want to use either Yahoo or Google Maps and I've found a bakery article from Nate in 2007 but can't find the ...
Alex Bovey
May 23, 2012 at 5:53 pm
May 26, 2012 at 1:25 pm -
Hi Just curious about this question as I have a similar need. Did you ever get an answer or figured out yourself? thanks -Adhi -- View this message in context ...
Bluesclues9
May 21, 2012 at 2:25 pm
May 21, 2012 at 5:41 pm -
In model's beforeSave() I need to do different things based on whether we're adding or editing an existing object. Unfortunately $this- URL). How can I _cleanly_ check if we're creating or editing? ...
Rahajiyev
May 14, 2012 at 11:28 am
May 14, 2012 at 1:26 pm -
I am new to CakePHP and am following the Packt Publishing book to get used to the tool (and challenge myself following 1.2 wirtten apps on 2.1.2). It's working well however I am stuck with basic ...
Ludovic Ferre
May 8, 2012 at 11:22 am
May 8, 2012 at 4:45 pm -
This is my behavior setup: public $actsAs = array( 'Uploader.Attachment' = array( 'image_upload' = array( 'name' = 'formatFileName', 'baseDir' = IMAGES, 'uploadDir' = 'writers', 'dbColumn' = 'image', ...
Xoubaman
May 3, 2012 at 4:49 pm
May 5, 2012 at 8:03 am -
Hello, I currently having a problem achieving a follower system with HABTM. In a word, my relationships seem to be well set up : User HABTM Follower , and in my join table (users_uers) I have the ...
JonStark
May 1, 2012 at 10:02 am
May 1, 2012 at 3:36 pm -
I'm a total newbie to Cake and believe I've put everything in their proper folders. Everything is green on my local host except my tmp Directory is not writable (yellow) I have no idea how to set ...
Kid Noire
May 26, 2012 at 12:44 pm
Sep 19, 2013 at 9:00 pm -
I still think with debug is 0 , cakephp will be run faster when debug is 2. But when i use ApacheBench : ab -n 100 http://example.com in localhost . It showed results is same. I ever read this ...
Điển vũ
May 31, 2012 at 10:47 am
May 31, 2012 at 4:16 pm -
So I have been trying to get this to work but still cannot seem to work through it. I am using this version: https://github.com/dereuromark/cakephp-google-map-v3-helper And following this ...
Michael Gaiser
May 25, 2012 at 7:56 am
May 27, 2012 at 2:21 pm -
Hello guys, im pretty new to CakePHP and at the moment im trying to bake a user- system via the console. I used this tutprial for this ...
Max Kiehnscherf
May 24, 2012 at 9:54 pm
May 25, 2012 at 2:12 pm -
Hello all, I am having issues using the DOMPDF pdf generation library in my Cake 2.1 application. I am building an inventory management application for use at my company and I am trying to ...
Josh M
May 18, 2012 at 8:35 pm
May 24, 2012 at 3:12 pm -
Hello. I need help with defining some unusual routes. Here are my 2 tables Colors and Products: mysql select * from colors; +----+------+ +----+------+ mysql select * from products ...
Confused Dev
May 8, 2012 at 1:17 pm
May 16, 2012 at 9:08 am -
I have a setup where there are Books Users and Logs. Each Log has a Book and a User and I am trying to retrieve a list of all the books regardless of the user, but then also retrieve the Logs ...
Rob
May 4, 2012 at 2:59 am
May 8, 2012 at 3:07 am -
MVC Beginner here - I have created a database with a USER table which hasMany EVENTS, and conversely have set the EVENTS belongsTo USER Here's my question: When I want to add an event from a user ...
Nate
May 5, 2012 at 11:54 am
May 5, 2012 at 4:58 pm -
This example is not working <p id="post" </p <p <?php echo $ajax- link( 'View Post', array( 'controller' = 'ajax', 'action' = 'view', 1 ), array( 'update' = 'post') ); ? </p I have included ajax ...
Ankit Patel
May 1, 2012 at 3:01 pm
May 2, 2012 at 5:04 am -
hi i want send array to some cookie and then i want push some values to this array in cookie. for example: in cookie i have this: array() then array([0]= 1) then array([0]= 1,[1]= 2) then array([0]= ...
Hoss7
May 1, 2012 at 6:26 am
May 1, 2012 at 10:06 am -
I'm trying to Save and Validate categories with 3 translations for the field 'name' using TranslateBehavior. I have a problem with the validation of the field with Translation. Model/Category.php ...
Manzapanza
May 7, 2012 at 1:33 pm
Oct 12, 2013 at 3:18 pm -
Hello all, Did everyone tried to use PHP's Interface as Extension Point in CakePHP? My idea is to create a fully modular app. To build a menu, for example, I would be able to do something like this ...
Vinicius Dusso
May 31, 2012 at 11:50 am
May 31, 2012 at 9:05 pm -
Hi, i am building 2 applicactions and on my localhost (WAMP server) works great, but when i upload it to the server this happen: With one: I cant get to see domain.com/Users or eny page with Auth- It ...
Omar Gonzalez
May 29, 2012 at 11:37 pm
May 31, 2012 at 8:30 am -
Hello I want to generate pdf reporting with cake php, please advise me -- -- Cordialement -- Mamdouh DAHAN BCS Consultancy Services Tel: +212 5 35 94 09 56 Mobile: +212 6 44 00 19 53 Website ...
DAHAN Mamdouh
May 30, 2012 at 6:02 am
May 30, 2012 at 11:25 am -
Hi! First of all I'm pretty new to CakePHP. Although it sometimes gives me headaches I love. On problem keeps coming up and I really do not know what it is caused by. The following error keeps ...
Martijn Thomas
May 18, 2012 at 8:35 pm
May 27, 2012 at 4:04 pm -
Hi, CakePHP newbie here. I'm trying to append the content from one of the view file (page.ctp) into another view file (index.ctp). So basically what I'm trying to do is: content from page.ctp ---- ...
Afif Abu Bakar
May 22, 2012 at 5:40 am
May 23, 2012 at 2:12 pm -
Okay, been working on this for a while, but I cannot figure out what in the world is going on! public function valid() { if (!empty($this- passedArgs[0]) && !empty($this- $username = $this- ...
Cody Sortore
May 21, 2012 at 8:07 pm
May 21, 2012 at 10:12 pm -
Hi All I there any way to use cakephp 2.X with PEAR:DB drivers ? i have checked old cake version supports pear connection but not the latest one.. is there any native drivers available to connect ...
Abhikakade
May 16, 2012 at 7:44 am
May 18, 2012 at 7:10 am -
4
Has one
Hello. I have the following problem. I have two model which share some data. Suppose I have a cat and a dog. Both of them are animals. So I would like to extract all the common fields to a table ...Andrés Manikis
May 16, 2012 at 5:43 pm
May 16, 2012 at 7:58 pm -
4
i
Hi everybody, Could you tell me what is the right way to display html formatted content extracted from the database? Taking the blog tutorial as example, how is possible to let users create posts ...Matteo Landi
May 5, 2012 at 4:01 pm
May 16, 2012 at 7:55 pm -
I'm wondering if anyone else has come across this: I have a situation in which I'm dispatching an event with 2.1's event system, and have multiple listeners for that event. Each listener returns its ...
Jamie Nay
May 14, 2012 at 8:26 pm
May 15, 2012 at 1:01 pm -
*HELLO , i INSTALL THE SOFTWARE http://open-school.org/ <http://open-school.org/ FOR SCHOOL MANAGMENT SOFTWARE THERE COME AN ISSUE Warning: include_once() [function.include]: Failed opening ...
Vikram sharma
May 14, 2012 at 10:20 am
May 14, 2012 at 10:57 am -
Hi, folks. Can I use CakePHP 2.1.2 with Oracle database? I looked in Model/Datasource/Database/ there only seems to be support for Mysql, Postgres, Sqlite, Sqlserver. But working with an existing ...
Rihad
May 10, 2012 at 8:44 pm
May 12, 2012 at 7:39 pm -
Hi I'm using a user management plugin for cakephp. The one I'm using can be found here: http://usermgmt.ektasoftwares.com/ Has anyone ever used this plugin? For some reason I can't get the ...
Steven Scaffidi
May 6, 2012 at 6:42 am
May 10, 2012 at 6:01 pm -
4
Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;
Hi, I am getting this Error: Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for ...Support
May 9, 2012 at 5:14 pm
May 10, 2012 at 7:16 am -
i want pass some value in Pagination links like this: http://localhost/142tel/tels/search/page:2/name/miki or http://localhost/142tel/tels/search/name/miki/page:2 how can i edit *Defualt* Pagination ...
Hoss7
May 9, 2012 at 8:57 am
May 9, 2012 at 9:41 am -
There should be a better way than what I am doing right now...... I have a set of 3 default Roles (Owner, Admin, Member). users can add, delete, modify the Roles, except the 3 Default Roles. If I ...
Bs28723
May 6, 2012 at 11:58 pm
May 8, 2012 at 2:34 am -
I've seen that cake had sent "PUT" in the "_method" variable but it was POST and I got "PUT" from $this- request- method() in the controller as well. How to get truly request method via cake? -- Our ...
SigalX
May 4, 2012 at 11:47 pm
May 5, 2012 at 8:22 am -
So I'm currently configuring my model relationship, and the array returns all needed info. But I have question : On my app, User hasMay Post, and so arrays look like this on User/view.ctp : array( ...
JonStark
May 1, 2012 at 11:11 am
May 1, 2012 at 11:48 am
Group Overview
group | cake-php |
categories | php |
discussions | 241 |
posts | 792 |
users | 230 |
website | cakephp.org |
irc | #cakephp |
230 users for May 2012
Archives
- May 2014 (140)
- April 2014 (212)
- March 2014 (252)
- February 2014 (190)
- January 2014 (174)
- December 2013 (122)
- November 2013 (141)
- October 2013 (164)
- September 2013 (245)
- August 2013 (291)
- July 2013 (214)
- June 2013 (327)
- May 2013 (371)
- April 2013 (373)
- March 2013 (429)
- February 2013 (388)
- January 2013 (500)
- December 2012 (417)
- November 2012 (499)
- October 2012 (521)
- September 2012 (579)
- August 2012 (854)
- July 2012 (824)
- June 2012 (733)
- May 2012 (792)
- April 2012 (341)