Re: Tools for merging directories

2008-06-05 Thread Grant Cox
Yes, with vendor branching you basically create a diff of the changes to the CakePHP core, then apply that to your own copy. Do you have a File/Folder merge utility that can do this - compare between the original core, the new core, and your application core? Because just comparing between the

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
I've upgraded to 1.2 RC1 and it hasn't solved my problem. Thanks anyway. Another idea someone ? On 4 juin, 21:01, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Any idea ? Try to upgrade your cake version. --~--~-~--~~~---~--~~ You received this message because

Re: how can i download the cakephp cookbook(menu)

2008-06-05 Thread leo
Look at the dates. Crikey! I'm glad you said that because I wouldn't have. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: Misconfigured CSS Directory

2008-06-05 Thread Grant Cox
/css/cake.generic.css is correct - you should never see the webroot in the url If mod_rewrite is enabled, are you sure you haven't removed any .htaccess files? If mod rewrite is disabled, are you sure you haven't removed any index.php files? if you have /var/www/html/cake/app/webroot then

Re: Tools for merging directories

2008-06-05 Thread David C. Zentgraf
Hi Grant, I read the SVN book vendor branching article in the meantime and agree with your points. Quite a lot of dilemmas that can pop up. What I'm still not sure about is how to best update the /vendors/ current directory. Your article only covers the Windows del command. Are there

Re: Tools for merging directories

2008-06-05 Thread ullumski
Well - you can drag folders into the left and right dropzones. Then drag again for ancestor and merge (destination). That way you get a pretty intuitive view similar to any subversionclient. Folders or Files with changes in them have no checkmarks, folders without have none. There are hotkeys

Re: Tools for merging directories

2008-06-05 Thread David C. Zentgraf
To be quite honest, I don't get it. :-D How would you use the Left/Right/Ancestor/Merge fields for updating your working copy? As far as I understand you'd still need to maintain a /vendors branch of the original versions (ancestor)? Is it handling collisions elegantly enough without having

TreeBehavior and callbacks

2008-06-05 Thread biesbjerg
Hi guys, I could use some ideas here. Here's the deal: I have this model, Assets, which holds references to uploaded files in my app. My UploadBehavior has some callbacks, one of them is beforeDelete which makes sure the file gets deleted from the filesystem before deleting the row in the

Re: Cake variables in url

2008-06-05 Thread aka
Ah and sorry, the cake version used is: 1.1.16.5421 (its an oldy, i know) On 5 jun, 11:59, aka [EMAIL PROTECTED] wrote: Hi there, Was wondering if someone has any idea on this: I've build an multilingual application and i'm using the cake sessions to store the language choice. Now for some

Cake variables in url

2008-06-05 Thread aka
Hi there, Was wondering if someone has any idea on this: I've build an multilingual application and i'm using the cake sessions to store the language choice. Now for some reason cake is showing allot of extra stuff in my url/ e.g.

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
It seems like the problem comes from the app_controller.php file but I wonder what I have done wrong. In fact, when I drag the content of my AppController class into each of my controllers and I add $this-Auth- allow(allowedAction1, allowedAction2, ...); it works. But it is far from optimal...

RC1 breaks my auth.

2008-06-05 Thread leo
I haven't had time to pin this down further than If I use the cake directory from the 1.2 beta auth works but if I use the 1.2 rc1 it's broken. The cookie code came from the manual @ 5.2.2.7 The error is: Notice (8): Undefined property: UsersController::$Cookie [APP

Re: Auth component : UsersController could not be found

2008-06-05 Thread leo
I'm trying to get the Auth component working. I've specified a different users controller (utilisateurs) but when I try to go to the login page (/utilisateurs/login) or to access a denied resource I'm always redirected to /users/login (should be /utilisateurs/login). I don't know if it'll

Re: TreeBehavior and callbacks

2008-06-05 Thread grigri
Just override the Asset::deleteAll function: class Asset extends AppModel { // ... function deleteAll($conditions, $cascade=true, $callbacks=true) { // Note the default parameter change : $callbacks is now true if unspecified return parent::deleteAll($conditions, $cascade,

Model::find(). Condition handled as an integer when it should be handled as a string

2008-06-05 Thread aka
Hi! Found this strange behavior when I was tracking down a bug on my Cake application. The easiest way is to reproduce this is to create the following sample application. 1. Set up the database: 2. Create the following table to the database CREATE TABLE `cars` ( `id` int(11) NOT NULL

Re: Auth component : UsersController could not be found

2008-06-05 Thread Dardo Sordi Bogado
If you override the beforeFilter in a descendant of AppController don't forget to call parent::beforeFilter() ie: class ThingsControllers extends Appcontroller { var $name = 'Things'; function beforeFilter() { } } On Thu, Jun 5, 2008 at 7:11 AM, teum [EMAIL PROTECTED] wrote: It

Re: Auth component : UsersController could not be found

2008-06-05 Thread Dardo Sordi Bogado
Ignore the previous code, I hit the send button by accident class ThingsControllers extends Appcontroller { var $name = 'Things'; function beforeFilter() { parent::beforeFilter(); // this controller custom stuff } } Regards, - Dardo Sordi

input name='foo[]' - how can I do that in Cake?

2008-06-05 Thread MarcS
Hi, I'm trying to create a group of checkboxes to pass some options like this input type='checkbox' name='foo[]' input type='checkbox' name='foo[]' input type='checkbox' name='foo[]' I can't seem to find a way to do this in cake. The only thing that is getting close is doing this

Re: Please include CakeBaker on the blog list

2008-06-05 Thread villas
@TommyO The main points are really that (a) the featured blog list should contain the best blogs, (b) the community could have some input to recommend the ones they like. A featured blog doesn't have to be the highest quality, but simply amongst the best ones that exist. It is a relative

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
I gave up in the end as I had to make so many changes = The only changes that I had to make for now is to add the following code in all my controllers : var $components = array(Auth); function beforeFilter() { $this-Auth-userModel = Utilisateur;

Re: Please include CakeBaker on the blog list

2008-06-05 Thread David C. Zentgraf
On 5 Jun 2008, at 00:50, Daniel Hofstetter wrote: I think it doesn't matter where an article is published, thanks to search engines. I beg to differ. Depending on the popularity of the blog, the quality of SEO done, the search terms used etc etc it's more or less a game of luck to find

Re: RC1 breaks my auth.

2008-06-05 Thread djiize
add Cookie to your components list in the controller leo a écrit : I haven't had time to pin this down further than If I use the cake directory from the 1.2 beta auth works but if I use the 1.2 rc1 it's broken. The cookie code came from the manual @ 5.2.2.7 The error is: Notice

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
I guess that when you declare a beforeFilter() method in a controller (which extends AppController) it overrides the AppController::beforeFilter() ? Am I right ? I'm going to do the following : 1) In my AppController I'll put this : function initializeAuthComponent() {

Is Cake the right choice for this...?

2008-06-05 Thread [EMAIL PROTECTED]
Hi folks, I have to develop a file uploading system with the following requirements: - admin can add clients and projects (multiple projects for 1 client) - clients can log in and see files that were uploaded for them (by admin) - clients can upload files into an selectable project - clients

hasOne relationship question

2008-06-05 Thread pdt
Hello, I'm new to cake, and a bit puzzled with the associated models. Suppose I have a User Model and a Theme model. A user can have only one theme. I would think this should be a hasOne association in the User model. class User extends AppModel { var $name = 'User'; var $hasOne =

a bit confused (n00b warning)

2008-06-05 Thread winter
Hi all, A bit irrelevant, but I'm using: cakephp 1.2.7119 RC1 sqlite 2.8.17 PHP Version 5.1.2 on linux kernel version 2.6.15 I've made exactly one simple app using cakephp. That was only to input some records to a single table. I thought it was so easy that I'd use it for my next project,

question about hasOne association in 1.1

2008-06-05 Thread pdt
Hello, In my real world model i would have a users that each can have one of several available themes. So i would think this translates into a user table and a theme table. In the user table there would be a field theme_id, right? How does this gets translated into a cake-hasOne association?

Re: Cake with Oracle - newest version

2008-06-05 Thread weckmann
with the latest official release it is fixed... was a temporary bug somehow... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
Ok I tried to do what I said in my previous message but unfortunately it doesn't work well, so I'm getting back to the only method that works i.e. putting a beforeFilter() with all the Auth component initializations (7 lines) in EACH of my controllers + a line to tell Cake that my controller uses

Re: question about hasOne association in 1.1

2008-06-05 Thread grigri
That's a belongsTo association. From an English-language point of view, I can understand that it doesn't sound right. But it is. On Jun 5, 10:15 am, pdt [EMAIL PROTECTED] wrote: Hello, In my real world model i would have a users that each can have one of several available themes. So i

Re: a bit confused (n00b warning)

2008-06-05 Thread Chris Hartjes
On Thu, Jun 5, 2008 at 8:00 AM, winter [EMAIL PROTECTED] wrote: Everything was going fin untill I wanted to put some html select tags on the add view for the pivots table. The docs don't say how I can access data from another model - $this-set('units', $unit-Unit- findAll());. Of course it's

HABTM saves multiple rows

2008-06-05 Thread Kyle Decot
I am trying to save a HABTM, but when i do a save, cake inserts 3 rows. If you could please help me, I would be most grateful because I am under somewhat of a time constraint: teams_users team_id | user_id -- 0 | 0 74 |

Re: Auth component : UsersController could not be found

2008-06-05 Thread Dardo Sordi Bogado
I guess that when you declare a beforeFilter() method in a controller (which extends AppController) it overrides the AppController::beforeFilter() ? Am I right ? Yes, then you just need to call parent::beforeFilter() inside the beforeFilter method from the controller you are declaring.

CakePHP 1.2 Cookbook PDF version

2008-06-05 Thread CrazyDave
Hi, Thought I'd let people know that I've created a PDF version of the 1.2 Cookbook. It's a pretty good version, generated from today's version of the site with an altered layout and working table of contents links. I find it useful for those moments I'm off-line.

Re: Is Cake the right choice for this...?

2008-06-05 Thread mbavio
The right question is: are you the right choice for Cake? No, talking seriously, Auth in Cake is very powerful but, you will have to learn to use it, it´s not difficult, but either is a piece of cake :P About uploads, I do it with a behavior that the Master Jedi AD7six released some time ago,

Re: Is Cake the right choice for this...?

2008-06-05 Thread Ithaka
hi kwer, Welcome to cake, if you decide to choose it. Here are a couple links that i found using google. http://cakebaker.42dh.com/2006/04/15/file-upload-with-cakephp/ http://www.reversefolds.com/articles/show/filehandler I have used the first link provided when i was building my file upload

Where to put new functions

2008-06-05 Thread moment11
I want a simple function that I can use in all my views: function export_var($the_var) { if (isset($the_var)) { return $the_var; } else { return ; } } I'm not really sure where to put this in the

UTF8 vs Dreamweaver

2008-06-05 Thread teum
Hi, I use Dreamweaver as a code editor, and I can't figure out a way to save a file as UTF8. As a result, I'm having troubles with accented characters. In fact, I'm using the Auth component and in each controller I have to define the error message that is displayed when the access is denied.

Re: Where to put new functions

2008-06-05 Thread dr. Hannibal Lecter
Anything you put in your ~/app/bootstrap.php will be available everywhere. On Jun 5, 3:17 pm, moment11 [EMAIL PROTECTED] wrote: I want a simple function that I can use in all my views: function export_var($the_var) { if (isset($the_var)) { return

Re: Where to put new functions

2008-06-05 Thread djiize
easy way : in app/config/bootstrap.php Cake way : create a custom Helper in app/views/helpers/ On 5 juin, 15:17, moment11 [EMAIL PROTECTED] wrote: I want a simple function that I can use in all my views:         function export_var($the_var) {                if (isset($the_var)) {          

Re: Where to put new functions

2008-06-05 Thread Bob Mattax
Is that *really* where this belongs? Shouldn't this be treated as a helper? http://book.cakephp.org/view/98/helpers On Jun 5, 9:36 am, dr. Hannibal Lecter [EMAIL PROTECTED] wrote: Anything you put in your ~/app/bootstrap.php will be available everywhere. On Jun 5, 3:17 pm, moment11 [EMAIL

Re: Auth component : UsersController could not be found

2008-06-05 Thread Timothée BRENNER
I use to do this: Create a private function _setupAuth() in AppController, then in AppController::beforeFilter() call it and in child controller's beforeFilter() just call parent::beforeFilter(). = Do you think it will work as my solution which was about the same technically (except I didn't

Re: UTF8 vs Dreamweaver

2008-06-05 Thread grigri
I use Dreamweaver as a code editor over-the-top-reactionuurgh! yuck! icky icky icky!/over-the-top- reaction Seriously, Dreamweaver isn't meant for code editing. It's painful. Personally I use Notepad++ (the screenshots look terrible because by default all comments are in Comic Sans MS, but

Re: Model::find(). Condition handled as an integer when it should be handled as a string

2008-06-05 Thread Jonathan Snook
How would Cake be able to know that when you pass it a number that what you really mean is a string? Cake knows because it's DEFINEd the fields from the database. If it's VARCHAR, CHAR, or TEXT, treat it as a string. --~--~-~--~~~---~--~~ You received this

Re: Complex CMS routing

2008-06-05 Thread James K
My first instinct is to go with a custom pages controller. I'm doing something similar right now with custom SEO paths in a site, and just jumping over Cake's pages routing entirely was the easiest way forward. - James On Jun 4, 6:11 pm, [EMAIL PROTECTED] wrote: Hi All, Over the course of

Re: Model::find(). Condition handled as an integer when it should be handled as a string

2008-06-05 Thread Chris Hartjes
On Thu, Jun 5, 2008 at 9:56 AM, Jonathan Snook [EMAIL PROTECTED] wrote: How would Cake be able to know that when you pass it a number that what you really mean is a string? Cake knows because it's DEFINEd the fields from the database. If it's VARCHAR, CHAR, or TEXT, treat it as a string.

Re: Complex CMS routing

2008-06-05 Thread Chris Hartjes
On Wed, Jun 4, 2008 at 6:11 PM, [EMAIL PROTECTED] wrote: Here is my problem though: I don't want to impact my users' sites, meaning I want to keep their URLs intact and continue to use the same underlying database containing sites and pages (where a record in the page table has a URI, a

Re: TreeBehavior and callbacks

2008-06-05 Thread biesbjerg
Unfortunately, enabling callbacks in deleteAll corrupts the tree... Opened a ticket here https://trac.cakephp.org/ticket/4846#preview On 5 Jun., 12:13, grigri [EMAIL PROTECTED] wrote: Just override the Asset::deleteAll function: class Asset extends AppModel { // ... function

Javascript library + images + etc as Vendor?

2008-06-05 Thread Bob Mattax
I'm trying to figure out where to put this javascript library and its associated files. I can't seem to figure it out. I put it in the app level vendor directory, but then I'm not sure how to access the images. I tried looking at the vendor examples, but they're pretty empty. Thanks bob

Re: TreeBehavior and callbacks

2008-06-05 Thread grigri
Unfortunately, enabling callbacks in deleteAll corrupts the tree... Yeah, that makes sense. What about deactivating the tree behavior, performing the delete, then reactivating it? function deleteAll($conditions, $cascade=true, $callbacks=true) { $this-Behaviors-detach('Tree'); $ret =

Re: TreeBehavior and callbacks

2008-06-05 Thread biesbjerg
Then the children will not get deleted and I'll end up with orphans.. I'm attaching a proposed patch to the ticket (Not fully implemented - Only for beforeDelete/afterDelete callbacks) On 5 Jun., 16:13, grigri [EMAIL PROTECTED] wrote: Unfortunately, enabling callbacks in deleteAll corrupts

Re: Auth component : UsersController could not be found

2008-06-05 Thread Dardo Sordi Bogado
= Do you think it will work as my solution which was about the same technically (except I didn't use the parent beforeFilter() method and my initializeAuthComponent() wasn't private) didn't ? I don't know what are you doing in your setup in order to make it don't work, for me is working

Re: Model::find(). Condition handled as an integer when it should be handled as a string

2008-06-05 Thread Jonathan Snook
Cake knows because it's DEFINEd the fields from the database. If it's VARCHAR, CHAR, or TEXT, treat it as a string. /me smacks himself in the forehead. I had thought that was the case, but is that *really* what is going on? It looks to me like Cake is not honouring that for whatever

Re: UTF8 vs Dreamweaver

2008-06-05 Thread teum
I could have anticipated such a reaction about Dreamweaver :) I know it's not appreciated by lots of people. I've heared about Eclipse but till now I was just too lazy to install it...I think I'll soon give it a try :) Thanks for the tip ! On 5 juin, 15:45, grigri [EMAIL PROTECTED] wrote: I

Re: TreeBehavior and callbacks

2008-06-05 Thread grigri
Then the children will not get deleted and I'll end up with orphans.. Really? I admit I don't use the TreeBehavior, but I am familiar with MPTT hierarchies, and I've got the code in front of me. I might well be wrong, but it seems like this: With the above code: 1. You call Asset::del(id),

Re: Complex CMS routing

2008-06-05 Thread Jonathan Snook
On Wed, Jun 4, 2008 at 6:11 PM, [EMAIL PROTECTED] wrote: Here is my problem though: I don't want to impact my users' sites, meaning I want to keep their URLs intact and continue to use the same underlying database containing sites and pages (where a record in the page table has a URI, a

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
Ok, I'll try again later. I might just be doing something wrong. On 5 juin, 16:53, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: = Do you think it will work as my solution which was about the same technically (except I didn't use the parent beforeFilter() method and my

How to display a custom message when redirecting to the login page

2008-06-05 Thread teum
Hello, It's about the Auth component (again). I'm allowing logged users to vote for a picture. Users that aren't logged can click on the vote link which redirects them to the login page. I want to inform them that they need to log in in order to be able to vote (with a message), and I don't

Setting recursive for only 1 model in a query

2008-06-05 Thread Zedix
Hey guys, I have a quick question regarding associations. Hopefully this is going to make sense: I currency have a Listing model which has several associations: - belongsTo Game, Member - hasMany Account Also relevant: - Account belongsTo Server Is it possible during a Listing-find() to fetch

Re: Javascript library + images + etc as Vendor?

2008-06-05 Thread Rich
I put my js files in the app/webroot/js directory and then call them using ?php echo $javascript-link('myjsfile'); where myjsfile == myjsfile.js make sure to add Javascript as a helper . . . rich On Jun 5, 9:55 am, Bob Mattax [EMAIL PROTECTED] wrote: I'm trying to figure out where to put

Admin section without using admin routing

2008-06-05 Thread zw
Is there a way to have a separate admin section that doesn't use the built-in CakePHP admin routing feature? I'd like to be able to set up my site so there is a folder within controllers called admin, and I can put all my admin specific controllers. That way I don't have to have my admin code in

Re: Auth component : UsersController could not be found

2008-06-05 Thread leo
I gave up in the end as I had to make so many changes = The only changes that I had to make for now is to add the following code in all my controllers : That's going to be a lot of maintenance. Can you please give me more details about those changes ? What do you advise me to do ? I'm

Re: Complex CMS routing

2008-06-05 Thread mrich . nu
2) trying to locate a resource depends on what your data model is like. You essentially need a central repository that acts as your site map which consists of parent_ids and stubs/slugs for that resource. Assuming resource stubs/slugs are unique, it'd be a simple matter of retrieving from

$html-image paths

2008-06-05 Thread leo
$html-image($path,$options = array() ) The api says, $path Path to the image file, relative to the app/ webroot/img/ directory. is this configurable? I don't want photos in the same place as graphics. --~--~-~--~~~---~--~~ You received this message

MySQL Error on the first tutorial (blog)

2008-06-05 Thread Jason Ourscene
Set up cake without a hitch. Moving onto the first part where we create the blog database i am getting this error: Here is the command: CREATE TABLE posts ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(50), body TEXT, created DATETIME DEFAULT NOT NULL, modified DATETIME

IIS - sessions disappearing

2008-06-05 Thread regent
I'm using IIS. I can write to a session and read from it within the same page, but when I go to a different page the session no longer exists. Any ideas what the issue is? in controller/index $this-Session-write('test', 'this is a test'); $test = $this-Session-read('test'); pr($test); // the

Re: MySQL Error on the first tutorial (blog)

2008-06-05 Thread leo
Remove the words DEFAULT. On Jun 5, 6:26 pm, Jason Ourscene [EMAIL PROTECTED] wrote: Set up cake without a hitch. Moving onto the first part where we create the blog database i am getting this error: Here is the command: CREATE TABLE posts (   id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,  

MySQL Error on the first tutorial (blog)

2008-06-05 Thread Jason Ourscene
This is my second time posting, so if it shows up again i apologize, I refreshed during the last post. So the command im sending is. # CREATE TABLE posts ( # id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, # title VARCHAR(50), # body TEXT, # created DATETIME DEFAULT NOT NULL, # modified DATETIME

Getting context info for embedded objects with Cake

2008-06-05 Thread Marcos Aruj
Hi all, I'm doing a website that provides some content that can be embedded on other websites(like youtube videos). But I want to show content related to the site embedding our objects. (something like google ads). What's the best way of achieving this with Cakephp (1.2). I'll need maybe the

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
That's going to be a lot of maintenance. You're right, I didn't think about it. Obviously I'm not so experienced in professionnal development which is normal as I've only been working as a web developer for seven months. In opposition to me, you seem to have a good hindsight with development,

Re: MySQL Error on the first tutorial (blog)

2008-06-05 Thread leo
Delete the two occurrences of the word DEFAULT and try again. On 5 Juny, 18:26, Jason Ourscene [EMAIL PROTECTED] wrote: Set up cake without a hitch. Moving onto the first part where we create the blog database i am getting this error: Here is the command: CREATE TABLE posts (   id INT

Re: Admin section without using admin routing

2008-06-05 Thread aranworld
The only thing stopping you is that you might come into problems having controllers with the same name. If you made a controller named useradmin_controller.php in / controllers/admin, cakephp will find it. However, if you have users_controller.php in BOTH /controllers and / controllers/admin, I

CakePHP with PBX System.. Is it doable?

2008-06-05 Thread Reza Muhammad
Hi guys, I was just assigned to a project building a hotel management system, and I would like to use CakePHP. Most of the requirements are pretty standards, but there is one thing I'm not familiar with. I am supposed to be able to track calls from each rooms that is using PSTN through

Re: Auth component : UsersController could not be found

2008-06-05 Thread Dardo Sordi Bogado
But using the standard Users controller doesn't change anything with that. So I may use Dardo Sordi Bogado's method as he tells me it works... Just Dardo, please. My method isn't any different from the suggested at the manual, I just use a separate function for the auth stuff beacause I

Re: Where to put new functions

2008-06-05 Thread Dardo Sordi Bogado
I agree with the others about putting it in the bootstrap or in a helper, but: What are you trying to do with that function? function export_var($the_var) { if (isset($the_var)) { return $the_var; } else { return ;

Re: CakePHP with PBX System.. Is it doable?

2008-06-05 Thread Gonzalo Servat
On Thu, Jun 5, 2008 at 2:37 PM, Reza Muhammad [EMAIL PROTECTED] wrote: Hi guys, I was just assigned to a project building a hotel management system, and I would like to use CakePHP. Most of the requirements are pretty standards, but there is one thing I'm not familiar with. I am supposed

Re: Admin section without using admin routing

2008-06-05 Thread Stephen Orr
Or you could do what I've done in the past on several occasions and create a plugin called 'admin', which will allow you to have URLs such as /admin/users/add. Works fairly well, and you can define a separate layout just by including in your plugin a /views/layouts/default.ctp file. On Jun 5,

How to refresh divs in CakePHP with onclick javascript action using XMLHttpRequest.

2008-06-05 Thread crisuwork
I just made some updates in my divs from views using XMLHttpRequest. You can read more at: http://maran.pamil-visions.com/Cakephp_Ajax.php If you know other ways to do that, tell me more about. --~--~-~--~~~---~--~~ You received this message because you are

Re: HABTM saves multiple rows

2008-06-05 Thread Adam Friedman
I had the same problem here. My solution (definitely not a great one) was to create a custom validation rule in app_model to prohibit duplicate inserts (inserts with identical field values). Make sure to set 'on' = 'create' in your rule array in $validation (of your specific model) to make sure

Adding certain components will kill the session - core bug?

2008-06-05 Thread Adam Friedman
Hi folks I was trying to get Simplepie component working (http:// bakery.cakephp.org/articles/view/simplepie-cakephp-component), and it worked fine. Here's what I did: - First I added the component 'Simplepie' to the controller: class UsersController extends AppController { var $name =

Re: Admin section without using admin routing

2008-06-05 Thread omarh
I have used two aproaches to solve this. The first is to make a subdomain (admin.domain.com) with another cake install, but can get a little messy. The other is to use an admin controller in where I define all the admin functions (edit_products, add_products, edit_clients, etc.), using their

Linkedin database

2008-06-05 Thread igorf
Hi I must do something linkedin where I have user connected to 3 level. I did the Users table and a UserConnestion table but I don't Know how to connect this table to get all connection. How I can do it? Thanks --~--~-~--~~~---~--~~ You received this message

Dispatcher Fatal Error when going through the blog tutorial.

2008-06-05 Thread Jason Ourscene
Following along the tutorial and when i get past the part where you build your first view and hit the url localhost/posts/index I get this error. Fatal error: Class 'PostsController' not found in /Users/jasoncalleiro/ Sites/cakeblog/cake/dispatcher.php on line 157 Any clue?

Re: CakePHP with PBX System.. Is it doable?

2008-06-05 Thread Chauncey Thorn
Does the PBX have a web frontend? if so you could scrape that and store to DB Can you telnet to the device? http://www.dali.net.nz/Telnet.class.php.txt If you can communicate with the device you could create a RESTFul type webservice and let cakephp interact with that... CT On Thu, Jun 5,

Dispatcher Fatal Error when going through the blog tutorial.

2008-06-05 Thread Jason Ourscene
Fatal error: Class 'PostsController' not found in /Users/jasoncalleiro/ Sites/cakeblog/cake/dispatcher.php on line 157 Thats what im getting after i create the index.thml file for my post. Any idea. Here is the code in my controller. ?php Class Posts_Controller extends AppController {

Re: MySQL Error on the first tutorial (blog)

2008-06-05 Thread Jason Ourscene
Thanks, got it working.. got a new error now that im posting in a seperate post. On Jun 5, 1:02 pm, leo [EMAIL PROTECTED] wrote: Delete the two occurrences of the word DEFAULT and try again. On 5 Juny, 18:26, Jason Ourscene [EMAIL PROTECTED] wrote: Set up cake without a hitch. Moving onto

Re: Dispatcher Fatal Error when going through the blog tutorial.

2008-06-05 Thread Gwoo
check out your class name...should be PostsController --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Javascript-object(...) handling of types

2008-06-05 Thread James S
Here is the scenario: 1. I get some data with a find query and flatten the data. 2. I run this through the Javascript-object(...) to obtain the JSON string. First, a simple schema for the data: id: integer name: string donation: decimal(13,2) created: datetime modified: datetime What I get

Re: Javascript-object(...) handling of types

2008-06-05 Thread James S
Here's the patch that would implement it, along with the unit test change. http://bin.cakephp.org/view/1767727164 James On Jun 5, 12:47 pm, James S [EMAIL PROTECTED] wrote: Here is the scenario: 1. I get some data with a find query and flatten the data. 2. I run this through the

Re: $html-image paths

2008-06-05 Thread Siebren Bakker
one option you can use is to place the photos in a subdirectory of img, and then use $html-img('/photo/imagefile') On Thu, Jun 5, 2008 at 11:19 AM, leo [EMAIL PROTECTED] wrote: $html-image($path,$options = array() ) The api says, $path Path to the image file, relative to the app/

Re: reset Session variables without any visible cause

2008-06-05 Thread Jeff
Here's a crazy thought: you are doing something wrong in your code. I have found in my vast experience with CakePHP that sessions don't magically disappear, but they disappear for a variety of well-known reasons. Some of which you might be able to find by searching this Google group. If

Re: reset Session variables without any visible cause

2008-06-05 Thread Jeff
Here's a crazy thought: you are doing something wrong in your code. I have found in my vast experience with CakePHP that sessions don't magically disappear, but they disappear for a variety of well-known reasons. Some of which you might be able to find by searching this Google group. If

Re: reset Session variables without any visible cause

2008-06-05 Thread Chris Hartjes
On Thu, Jun 5, 2008 at 3:27 PM, Jeff [EMAIL PROTECTED] wrote: But, the question is, why does it happen sometimes (randomly) and not other times. I know exactly what the others are going through, because it is happening on my site too. I can do the exact same steps that killed my session,

Re: libchart helper

2008-06-05 Thread roby
Thanks Francky for the link, gonna see that soon :D On Jun 2, 10:43 pm, francky06l [EMAIL PROTECTED] wrote: Well, I have tested the pie and barchart, but there others. Basically you have to render a small javascript : http://code.google.com/apis/visualization/documentation/gallery.html On

trigger submit action from applet

2008-06-05 Thread oana
Hello, sorry if this has been asked before: i have a page which displays an applet and a form. in the applet i have some text fields and a button. When this button is clicked i use javascript to fill the inputs in the form with the values from the applet, but i don't know how to send the form

Re: trigger submit action from applet

2008-06-05 Thread Adam Royle
As you've said this is not related to cakephp, but rather just plain javascript. document.getElementById('id_of_your_form').submit(); If you are giving a name to your submit button, make sure it is NOT name=submit - instead using capitals - name=Submit Cheers, Adam On Jun 6, 7:09 am, oana

HABTM / left outer join

2008-06-05 Thread Hans Allis
Hi, While trying to build a copy of an existing application (which we developed w/o a framework) using CakePHP, I've run into a small issue regarding left outer joins in an HABTM relationship. In our application, users can add/edit/delete packagings and languages. Users can also store

Re: How to refresh divs in CakePHP with onclick javascript action using XMLHttpRequest.

2008-06-05 Thread francky06l
I think there are shorter way using the ajax helper: In view: div id=movie_div/div ?php $js = $ajax-remoteFunction(array('url' = '/controller/ action', 'update' = 'movie_id'))); echo $javascript-codeBlock($js); ? Hope I understood the question .. On Jun 5, 7:58 pm, crisuwork

Re: Adding certain components will kill the session - core bug?

2008-06-05 Thread francky06l
Are you sure the Simplepie (I do not know it, probably as a vendors ?) hasn't got a session start ? If so try to comment it. On Jun 5, 8:25 pm, Adam Friedman [EMAIL PROTECTED] wrote: Hi folks I was trying to get Simplepie component working (http://

Re: CakePHP with PBX System.. Is it doable?

2008-06-05 Thread SeanW
Hi Reza, Most PBX systems log with a feature called Call Detail Recording (or Records), CDR for short. How to get at them depends on the system, but generally there is a card in the PBX with a serial output that spits out the CDR records. Attached to this is often a buffer box that a PC dials

  1   2   >