Re: CakePHP In A Subdirectory?

2009-01-26 Thread inVINCable
)  and add RewriteBase /myapp into mod_rewrite section. Regards 2009/1/26 inVINCable invinceable...@gmail.com: Hey all, Very simply question but cannot seem to find the answer. I have the directory structure and everything in tact in the normal way. However, on my server I put

Re: CakePHP In A Subdirectory?

2009-01-26 Thread inVINCable
be worth re-starting the (web) server. It fixed a 500 error I was getting a while back. Been fine every since (even after uploading source updates). On Jan 26, 1:38 pm, inVINCable invinceable...@gmail.com wrote: Hey, Ok, I found both of the .htacess files and added RewriteBase /myapp so

Re: CakePHP In A Subdirectory?

2009-01-26 Thread inVINCable
, inVINCable invinceable...@gmail.com wrote: Hey, Ok, I found both of the .htacess files and added RewriteBase /myapp so my .htacess file looks like: IfModule mod_rewrite.c     RewriteEngine on     RewriteBase /myapp     RewriteRule    ^$    webroot/    [L]     RewriteRule

Re: CakePHP In A Subdirectory?

2009-01-26 Thread inVINCable
inVINCable, I have tested my suggestion - see above. This is the htaccess of the top-level. The others are untouched. Hope that helps RoVo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

CakePHP In A Subdirectory?

2009-01-25 Thread inVINCable
Hey all, Very simply question but cannot seem to find the answer. I have the directory structure and everything in tact in the normal way. However, on my server I put the entire structure in the /myapp folder in the document root. Now, everything is all mest up and there is no CSS and files are

Re: recommendations for credit card processing

2007-11-22 Thread inVINCable
I would also like some suggestions for this as well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

Struggling with CRON and the shell script within the console.

2007-07-25 Thread inVINCable
Hey guys, I apologize if this has been answered before, but I could not find it anywhere, and have been attempting to get this thing to work for the past 3 hours. I am using WAMP 5 and have tried to set up the console the way gwoo did in the screencast, followed directions exactly, but when I

Re: Paginating the results after creating a dummy model to filter HABTM results?

2007-07-13 Thread inVINCable
, inVINCable [EMAIL PROTECTED] wrote: Hey guys, I am trying to paginate the results after creating an association on the fly that lets me search the results of a HABTM association. This is what it look like... $userschool = $this-Session-read('User.school_id

Re: Cache Elements for Different Users

2007-07-13 Thread inVINCable
Ketan Patel, I am attempting to do the exact same thing and am running into trouble. How exactly are you setting the $userid variable? What I have done is in my view, set it up like this, $session-read('User.id), so the user id is set there, and then something like $this- element('tagCloud',

Paginating the results after creating a dummy model to filter HABTM results?

2007-07-10 Thread inVINCable
Hey guys, I am trying to paginate the results after creating an association on the fly that lets me search the results of a HABTM association. This is what it look like... $userschool = $this-Session-read('User.school_id'); $this-Story-bindModel(array('hasOne'

Re: Struggling with creating a function and search an array then outputting data based upon results...

2007-07-08 Thread inVINCable
Hey mate! Thanks for your help but I solved the problem a couple of hours ago. What I did was first get the items, then I simply extracted the data, in this case the votes, from those items, then after that I set a variable to the funciton in_array. Then depending on the outcome of that the css

Binding my assocation on the fly to sort through a HABTM relationship...

2007-07-07 Thread inVINCable
Hi guys, Alright, this problem has troubled me for the past four hours so I have to resort to the group : \ Ok, I have a HABTM between stories, tags, and my join table is stories_tags. I have my search function set up very simply like this in my tag controller function search($tag) {

Re: Binding my assocation on the fly to sort through a HABTM relationship...

2007-07-07 Thread inVINCable
be done at this level. You could use the finderQuery parameter, maybe into the HABTM association. This thread is very helpfull for the syntax of the finderQuery : http://groups.google.com/group/cake-php/browse_thread/thread/5ac2bdec... On Jul 7, 7:37 pm, inVINCable [EMAIL PROTECTED] wrote: Hi

Re: Binding my assocation on the fly to sort through a HABTM relationship...

2007-07-07 Thread inVINCable
P.S. franckyl, You were right, it does not work because there is no tag_id field in my story table. On Jul 7, 10:58 am, inVINCable [EMAIL PROTECTED] wrote: francky06I, I think a problem would occur because the variable depending on what school_id is in their session, so if I put

Re: Binding my assocation on the fly to sort through a HABTM relationship...

2007-07-07 Thread inVINCable
Heh, yeah I fixed it, still no dice :( No Story.tag_id field On Jul 7, 11:12 am, Tim Koschuetzki [EMAIL PROTECTED] wrote: Typo in the last line of the binding operation: 'cinditions' ; ] On 7 Jul., 19:58, inVINCable [EMAIL PROTECTED] wrote: francky06I, I think a problem would occur

Re: Render view without layout

2007-07-04 Thread inVINCable
I am trying to get jquery to work with cake as well, so if anyone has any ideas that would be great. On Jul 4, 12:26 pm, Contrid [EMAIL PROTECTED] wrote: Thanks for the responses guys! Greatly appreciated! I could use the 'ajax' feature... But the problem is that I'll then need the

Setting up the network using model associations.

2007-06-25 Thread inVINCable
I have just begun to set up my site and am running into trouble when trying to use the model associations. My tables look like this. CREATE TABLE city ( id INT UNSIGNED NOT NULL AUTO_INCREMEMNT, name VARCHAR(50) ); CREATE TABLE users ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, username

Re: Setting up the network using model associations.

2007-06-25 Thread inVINCable
On Jun 25, 1:09 pm, Jonathan Langevin [EMAIL PROTECTED] wrote: I agree with Chris On 6/25/07, Chris Hartjes [EMAIL PROTECTED] wrote: On 6/25/07, inVINCable [EMAIL PROTECTED] wrote: Each user will be linked to ONLY one city, and each city will have many users. So the best way I can

these bloody cannot send session cookies are killing me!

2007-06-25 Thread inVINCable
I have spent the last 3 hours trying to figure this out, and to no avail. Everything was fine and dandy until I add my login function in the users controller. unction login() { if(!empty($this-data)) { // see if there are any users in the

Re: these bloody cannot send session cookies are killing me!

2007-06-25 Thread inVINCable
('localhost'); } On Jun 25, 7:13 pm, John David Anderson [EMAIL PROTECTED] wrote: On Jun 25, 2007, at 7:58 PM, inVINCable wrote: I have spent the last 3 hours trying to figure this out, and to no avail. Everything was fine and dandy until I add my login function in the users

Re: these bloody cannot send session cookies are killing me!

2007-06-25 Thread inVINCable
Does anybody have a fix? It seems simple enough, just a simply logout function, but those damn header warnings keep coming up. Any advice? Thanks. On Jun 25, 7:19 pm, inVINCable [EMAIL PROTECTED] wrote: Well, I fixed the original problem, but now after setting my logout function, the redirect

Proper design of networks with CakePHP...

2007-06-23 Thread inVINCable
I have been creating various websites for hire the past few months. Most have been basic logins, shopping carts, etc. And they have all been using PHP and the SMARTY template system. I have been fuddling around with CakePHP for about 10 hours already the past few days to get a feel for it. I have

Re: Proper design of networks with CakePHP...

2007-06-23 Thread inVINCable
On Jun 23, 6:00 pm, Grant Cox [EMAIL PROTECTED] wrote: Unless the views are quite different between cities, definitely use a single view file. In MVC your controller should load whatever data is appropriate for the request, and the view just renders that data (into HTML, or RSS, or JSON,

I keep seeing 'e' when reading tutorials.

2007-06-22 Thread inVINCable
I am currently following a tutorial, and this line appears in my code: if ($error) { e('Invalid Login'); } Obviously this means there is an error. The problem is I do not remember defining $error anywhere, nor do I have any idea what the single 'e' means. Thank you for any advice on the