Re: HELP, Controller displaying multiple duplicate rows

2009-03-31 Thread John Andersen
Could you please provide the whole modified SQL statement? It looks like you are trying to left join the statuses table twice! Enjoy, John On Apr 1, 6:18 am, Louie Miranda wrote: > Hello, > > I think there is a problem on my parameter on the controller. Because once > my other tables has mul

RewriteEngine not allowed here - 500 Internal Server Error

2009-03-31 Thread djXternal
/htdocs/cake/.htaccess: RewriteEngine not allowed here this is resulting in a 500 Internal Server error, I have checked for the existence the proper content of all .htaccess files, and have setup the 'AllowOverride All' and the Load Module for mod_rewrite are all setup properly, and I even tried

HELP, Controller displaying multiple duplicate rows

2009-03-31 Thread Louie Miranda
Hello, I think there is a problem on my parameter on the controller. Because once my other tables has multiple entries, the data on the row is duplicated for my main controller. See my code and parameter and the SQL query cakephp produces. http://bin.cakephp.org/saved/5 The default for cakep

Re: login problem

2009-03-31 Thread brian
Sorry for the noise. It was indeed this line: $this->Auth->authorize = 'actions'; I thought that because there is no ACO for PagesController there wouldn't be a problem. In any case, this isn't what I want to do, after all. Back to the drawing board ... On Tue, Mar 31, 2009 at 10:14 PM, brian

login problem

2009-03-31 Thread brian
The problem is simply that I can't log in. I've done this before but I'm trying to build an ACL-controlled site and following along with the manual's example app. WHen I try loggin in I get "You are not authorized to access that location." I suspect the problem might be with the redirect, and not

Re: Notice (8): Undefined index: id?

2009-03-31 Thread Aurelius
It happens when Saving a Model! I've no beforeX-Filters, I also had debug($this-data) right before saving, but each Model (Accept the hasAndbelongToMany) have an id! thx Aurelius On 31 Mrz., 02:32, mscdex wrote: > On Mar 30, 6:11 pm, Marcelo Andrade wrote: > > > > > On Mon, Mar 30, 2009 at 6:

Re: form select/javascript

2009-03-31 Thread jc_mich
You can do this: echo $form->input('Model.year', array('onclick'=>'someAction();', 'label'=>'','style'=>"width: 60px", 'minYear' => '1983', 'maxYear' => date('Y'))); kurious oranj wrote: > > > Hi, > > I'm quite new to CakePHP and need to have a SELECT with options for > each year from 19

Re: form select/javascript

2009-03-31 Thread Juan Carlos Michaca
echo $form->input('Model.field', array('onclick'=>'someAction()', 'label'=>'', 'minYear' => '1910', 'maxYear' => '2010')); 2009/3/31 mscdex > > On Mar 31, 12:18 pm, Kalt wrote: > > echo $form->dateTime( > > 'fieldname', > > 'DMY', > > 'NONE', > > null, > >

Re: Router pass email

2009-03-31 Thread brian
I guess the .de looks like an extension. Why it would strip it from your route is another question. You could avoid this altogether (depending on your situation) by POSTing the email address to your action. If this link is auto-generated and included in a newsletter email, I guess that'd be out o

Re: auto submit sitemap to Google

2009-03-31 Thread brian
Google provides for creating and sending them a sitemap: http://www.google.com/support/webmasters/bin/answer.py?answer=40318&hl=en On Tue, Mar 31, 2009 at 12:13 PM, Kalt wrote: > > I'm not 100% sure of that but if your robots.txt have the following > line : > Sitemap: > search engines will cra

Re: Why is validation called twice?

2009-03-31 Thread Miles J
For now I had to manipulate the sessions to make sure the first value is used and not over written. /** * Validate recaptcha * @param array $data * @return boolean */ function recaptcha($data) { App::import('Vendor', 'recaptcha', array('file' => 'recaptcha.php')); App::import(

Re: Why is validation called twice?

2009-03-31 Thread Miles J
Well thats not the problem, I simply had more rules and in the example I am only showing one. --~--~-~--~~~---~--~~ 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

Re: Why is validation called twice?

2009-03-31 Thread logout
Well, you have too many 'recaptcha'-s: 'recaptcha' => array( 'recaptcha' => array( 'rule' => array('recaptcha'), 'message' => 'captchaFailed' ) ) Just try to name those differently and try again, for example: 'myrecaptcha' => array( 'recap

Re: media view and files on the fly

2009-03-31 Thread Mark (Germany)
are you sure it is app_media.php then? i only got it to work by leaving it the same name "media.php" in /app/ views/ mark On 31 Mrz., 21:45, "Mark (Germany)" wrote: > nice :) > thx > > On 31 Mrz., 15:17, Matt Curry wrote: > > > I had to do this with pdf/xls files returned by a webservice.  I

Re: Why is validation called twice?

2009-03-31 Thread Miles J
Thats my last resort type of deal. Just wondering why its called twice? --~--~-~--~~~---~--~~ 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 fr

Re: DebugKit's toolbar not working

2009-03-31 Thread Steven
After reading your posts I could see that the css and toolbar were loading. I tried installing a it on a fresh cakephp app, to ensure it wasnt a CSS clash, and notices that cakephp had no styling... Then I realised that this issue boiled down to mod_rewrite not being on! Thanks for the replies,

Re: media view and files on the fly

2009-03-31 Thread Mark (Germany)
nice :) thx On 31 Mrz., 15:17, Matt Curry wrote: > I had to do this with pdf/xls files returned by a webservice.  I took > the default media view (/cake/libs/views/media.php) and copied it to / > app/views/app_media.php. > > Then I modified it so that it checked for a $content view var and > wro

Re: form select/javascript

2009-03-31 Thread mscdex
On Mar 31, 12:18 pm, Kalt wrote: > echo $form->dateTime( >         'fieldname', >         'DMY', >         'NONE', >         null, >         array( >                 'minYear' => 1983, >                 'maxYear' => date('Y') >         ), >         false > ) You can also do: echo $form->year('M

Re: Setting Layout for Scaffolding?

2009-03-31 Thread bbf
Thanks Amit but unfortunately that walkthrough helps for modifying the HTML that the scaffolding functionality uses -- but it does not address the layout. The layout remains "default". I also tried setting [ $this->layout = "" ] in those view / .ctp files and no change. I also tried [ $thi

Re: looking for a method to record 'page views'

2009-03-31 Thread Matt Curry
Another thing to consider (especially if it's a busy site) is to not track the views in real time. Instead scan your webserver logs hourly/ daily and update the counts that way. This allows you to cache the pages and still keep track of visits. -Matt http://www.pseudocoder.com On Mar 30, 11:14

Re: looking for a method to record 'page views'

2009-03-31 Thread Smelly Eddie
Have you considered using an existing solution with metrics and reporting surrounding it? You can give read only access to clients as well. http://edwardawebb.com/programming/php-programming/cakephp/piwik-analyze-visits-cakephp-site On Mar 30, 1:39 pm, JamesF wrote: > i did see that article b

Re: Does anybody know how can I limit the join table fields when I user joins condition?

2009-03-31 Thread Amit
I highly recommend checking out the Containable behavior: http://book.cakephp.org/view/474/Containable It will simplify this code and let you easily add fields. On Mar 31, 8:28 am, joshua wrote: > For example: > One task has many users. > >         $condition = array()

Re: Double left join?

2009-03-31 Thread Amit
Take a look at the Containable behavior. You should able to something as simple as: http://book.cakephp.org/view/474/Containable $this->Model->contain('Company', 'Category'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Multiple hasMany relationships to one model?

2009-03-31 Thread Amit
Brian - that'd be a good option if an image can belong to many movies and many episodes. Adam - is that the case? Or can an image only belong to either 1 movie or 1 episode? From the description you put up it sounds like hasMany is the right association, it's just making a good db design undernea

Re: variable from one action view to another

2009-03-31 Thread John Andersen
Use urlencode for the name before placing it in the url and then urldecode it when processing the reply! Enjoy, John On Mar 25, 3:33 am, kai wrote: > I have a foreach loop that runs through an array and for each object > there's a report link that lets users report something wrong with that >

Re: Router pass email

2009-03-31 Thread hasentopf
Hi again. In my routes.php I also got: Router::parseExtensions('rss'); This entry is necessary for creating a RSS feed with the RssHelper. When the Router::parseExtensions('rss'); comes before Router::connect ('/newsletter/unsubscribe/:email', array('controller' => 'newsletterReceivers',

Re: How to silently redirects to login page ?

2009-03-31 Thread John Andersen
Yes, Logout, but first I would like the original poster to make it work as wished for, then any further checking can be implemented on a need basis. Enjoy, John On Mar 31, 8:05 pm, logout wrote: > I woud set $this->Auth->loginRedirect to false and check in the login > () action if the user is

Re: DebugKit's toolbar not working

2009-03-31 Thread mark_story
DebugKit does not use any jQuery. If you are not getting the toolbar to display, you should check the following. 1. Your HTML output, is the toolbar source there. 2. Your Html output, is the CSS/JS for the toolbar there? 3. If you set $this->view in action or beforeRender you will not see the to

Re: simple cms w/ auth :: username & password only to admin console page

2009-03-31 Thread John Andersen
Ok, I will give it a try with understanding what you are trying to accomplish! Correct me if my understand is wrong, but: 1) You have a standard CakePHP installation with the CakePHP directory and an application "app" directory, correct? 2) You wish to use the application to provide content mana

Re: How to silently redirects to login page ?

2009-03-31 Thread logout
I woud set $this->Auth->loginRedirect to false and check in the login () action if the user is logged or not. This way you can check a lot more things (user role, etc.) and redirect the logged user wherever you want. Oh, and one more thing, disable the browser cache for the login form... On Mar 3

Re: Save null or empty datetime fields

2009-03-31 Thread Stinkbug
I ran into the same problem. I've been told this is a PHP problem, not really a Cake problem. The way we ended up handling it is by creating a stored procedure and calling that procedure within our model. Basically, what the procedure does is take the data and makes sure that all -00-00 fie

Re: form select/javascript

2009-03-31 Thread Kalt
echo $form->dateTime( 'fieldname', 'DMY', 'NONE', null, array( 'minYear' => 1983, 'maxYear' => date('Y') ), false ) On 31 mar, 18:00, kurious oranj wrote: > Hi, > > I'm quite new to CakePHP and need to have a

Re: auto submit sitemap to Google

2009-03-31 Thread Kalt
I'm not 100% sure of that but if your robots.txt have the following line : Sitemap: search engines will crawl your sitemap automatically. On 31 mar, 17:54, koala kid wrote: > Hi, > > I am working on a site for a client using cakePHP. I found a great > article in the bakery that outputs the site

Re: DebugKit's toolbar not working

2009-03-31 Thread Brendon Kozlowski
If clearing your cache does not help, your CSS may be interfering with DebugKit's own CSS. On Mar 31, 10:23 am, Sam Sherlock wrote: > Try clearing the browsers cache - I think I to had this issue, just would > show top right > > after clearing cache of ff it started.   My projects all have jquer

Re: CakePHP on Hiawatha web server

2009-03-31 Thread Gwoo
Did you uncomment App.baseUrl in core.php? --~--~-~--~~~---~--~~ 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, send email to

form select/javascript

2009-03-31 Thread kurious oranj
Hi, I'm quite new to CakePHP and need to have a SELECT with options for each year from 1983 to the current year. I can certainly write the javascript to do the loop from 1983 to current year, but what's the best way to call that javascript to populate the SELECT? I just need the general mechanism

Search by Selects

2009-03-31 Thread Dave
Can someone point me in the direction of a good place to start building a Search Function? I have a HABTM table with options related to the User that they can select only (not allowed to add or edit), now I want to be able to have Users search using the checkboxes? In the table is Hip Hop, Count

auto submit sitemap to Google

2009-03-31 Thread koala kid
Hi, I am working on a site for a client using cakePHP. I found a great article in the bakery that outputs the sitemap in the correct XML format and is accessible via the browser. I want to automate the submission of this using a cron job. Does anyone have an example script that would call the xm

Router pass email

2009-03-31 Thread hasentopf
Hi. I've got a problem with Route passing parameters to action. routes.php: Router::connect('/newsletter/unsubscribe/:email', array('controller' => 'newsletterReceivers', 'action' => 'unsubscribe'), array('pass' => array('email'))); NewsletterReceiversController: function unsubscribe($email = nu

Re: skype links with html helper

2009-03-31 Thread Sam Sherlock
I think that using the html helper is unnecessary it is more complicated than simply echo '' . $username . ''; - S 2009/3/31 donnerbeil > > Hi, > > Does anyone know, if it is possible to generate a link like: > > skype:username?call > > with the html->link() method? > > > I tried this: > $h

skype links with html helper

2009-03-31 Thread donnerbeil
Hi, Does anyone know, if it is possible to generate a link like: skype:username?call with the html->link() method? I tried this: $html->link('username','skype:username?call); output is: http://www.mydomain.com/skype:username?call Any ideas? --~--~-~--~~~---~--~

Re: turning on/off query that shows at the end of each page?

2009-03-31 Thread mscdex
On Mar 31, 8:11 am, "Sajid.bd" wrote: > Hello I am learning cake.Can anyone help me how to turn on/off the > query that shows at the end of each page? In your app\config\core.php, set the 'debug' configuration setting to 0 or 1. --~--~-~--~~~---~--~~ You received

Re: turning on/off query that shows at the end of each page?

2009-03-31 Thread brian
If you set debug to 0 it will not be displayed. Look in app/config/core.php You can also remove the echo $cakeDebug; from your layout but I wouldn't recommend that. On Tue, Mar 31, 2009 at 8:11 AM, Sajid.bd wrote: > > Hello I am learning cake.Can anyone help me how to turn on/off the > query th

Re: Is there an offline documentation for CakePHP?

2009-03-31 Thread brian
Wir begrüßen Sie zurück, wenn wir von Ihnen noch einmal. (I hope that's correct--been a long time since I spoke any German) On Tue, Mar 31, 2009 at 10:40 AM, Liebermann, Anja Carolin wrote: > > Hi Brian, > > I cannot imagine it either. I just hope to survive until enough things go > wrong and

Re: Why is it so hard to find answers on cakephp trouble?

2009-03-31 Thread brian
On Tue, Mar 31, 2009 at 8:34 AM, Steven wrote: > > I think the documentation in the most part is OK, but in some areas it > lacks complete explanation. For me an example of this is the ACL > documentation, it actually starts off really well and explains in > enough detail, what ACL is all about A

AW: Is there an offline documentation for CakePHP?

2009-03-31 Thread Liebermann, Anja Carolin
Thank you very much, that looks good! Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag von Dinh Ba Thanh Gesendet: Dienstag, 31. März 2009 16:26 An: cake-php@googlegroups.com Betreff: Re: Is there an offline documentation for Ca

AW: Is there an offline documentation for CakePHP?

2009-03-31 Thread Liebermann, Anja Carolin
Hi Brian, I cannot imagine it either. I just hope to survive until enough things go wrong and it is switched on again. Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag von brian Gesendet: Dienstag, 31. März 2009 16:35 An: cake

Re: Multiple hasMany relationships to one model?

2009-03-31 Thread brian
I'd go HABTM for this, I think. movies videos images images_movies images_videos On Tue, Mar 31, 2009 at 2:09 AM, Adam M wrote: > > Hi All, > > How can I PROPERLY set up my database so that several models have > multiple images?  Each image belongs to a particular model, so they > are definitel

Re: Is there an offline documentation for CakePHP?

2009-03-31 Thread brian
I cannot imagine trying to develop web apps without an internet connection. There is just so much more than the Cake manual that's required. I can deal with a brief outage, but there's no way I could get much done without a connection *ever*. btw, how is the IT dept. supposed to install updates,

Re: Multiple hasMany relationships to one model?

2009-03-31 Thread Amit
You have a couple options here. What's "proper" is really what works best in your situation, so do some testing to see how the queries perform. I had a similar situation so I'll explain what I did. Video - id Episode - video_id - name - date Movie - video_id - name - date - producer Image - id

Re: how to use other SQL expressions like where field_name in(x,y,z)

2009-03-31 Thread brian
I believe the syntax should be: $result = $this->ReviewerActivityStatus->find( 'all', array( 'conditions'=>array( 'reviewer_id => $keys, 'status'=>'1' ) ) ); where $keys is an array. On Tue,

Re: Is there an offline documentation for CakePHP?

2009-03-31 Thread Dinh Ba Thanh
You may want to save this link to your harddisk http://book.cakephp.org/complete/3 Best Regards, Dinh Ba Thanh, Jason bath...@gmail.com On Mar 31, 2009, at 10:24 PM, Liebermann, Anja Carolin wrote: > > Hello everybody, > > my company will forbid access to the internet within the next days,

Is there an offline documentation for CakePHP?

2009-03-31 Thread Liebermann, Anja Carolin
Hello everybody, my company will forbid access to the internet within the next days, even for the IT department. To be able to develop with CakePHP in the future I would like to know if there is an offline documentation for CakePHP 1.2 ( manual and/or API). Any hints to counter this madness are d

Re: DebugKit's toolbar not working

2009-03-31 Thread Sam Sherlock
Try clearing the browsers cache - I think I to had this issue, just would show top right after clearing cache of ff it started. My projects all have jquery in them, but I believe that debugkit has contains everything it requires (loading jquery via google api - not conclusive on that I expect I'

DebugKit's toolbar not working

2009-03-31 Thread Steven
I installed debug_kit version 1.0 into app\plugins\debug_kit, my debug level is set to 2, and I have put: var $components = array('DebugKit.Toolbar'); In the relevant controller. However DebugKit is displaying all its output at the bottom of the page between my content, and the SQL output. I do

Re: New Install - Where is the Dispatch

2009-03-31 Thread almasty
The set-up I had was to have the shared cake libraries in /usr/local/cake_1.2.2.8120 I had my app folder in /var/www/vhosts/mydomain.com/app and my webroot in /var/www/vhosts/mydomain.com/httpdocs The user was mydomain:psacln I found the `problem` was with the chmod permission in /usr/local

Multiple hasMany relationships to one model?

2009-03-31 Thread Adam M
Hi All, How can I PROPERLY set up my database so that several models have multiple images? Each image belongs to a particular model, so they are definitely hasMany relationships. Example: Episode -id -name -date Movie -id -name -date -producer Image -id -name -caption -path Episode hasMany

safe_mode install impossible

2009-03-31 Thread almasty
I've installed cake_1.2.2.8120 on my server and am happily developing with it. It's really is very neat. However, can an install be done using the advanced pattern i.e. the cake lib folder resides outside the root in a common area for any web user on a shared server to use? I tried but could not

how to use other SQL expressions like where field_name in(x,y,z)

2009-03-31 Thread rwolverine
Thanks in advance for any help provided. Apologies for no code blocks. I want to write my find such that it can construct a query like: SELECT `ReviewerActivityStatus`.`id`, `ReviewerActivityStatus`.`reviewer_id`, `ReviewerActivityStatus`.`date`, `ReviewerActivityStatus`.`status`, `ReviewerActiv

Re: Why is it so hard to find answers on cakephp trouble?

2009-03-31 Thread Steven
I think the documentation in the most part is OK, but in some areas it lacks complete explanation. For me an example of this is the ACL documentation, it actually starts off really well and explains in enough detail, what ACL is all about ACOS/AROS, how to get it set up, implement it into your mod

turning on/off query that shows at the end of each page?

2009-03-31 Thread Sajid.bd
Hello I am learning cake.Can anyone help me how to turn on/off the query that shows at the end of each page? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-

Re: Does anybody know how can I limit the join table fields when I user joins condition?

2009-03-31 Thread francky06l
Use the 'fields' options for your field and add 'User.name' in it maybe ? hth On Mar 31, 3:28 pm, joshua wrote: > For example: > One task has many users. > >         $condition = array(); >         $condition['joins'] = array( >             array( >                 'tab

Does anybody know how can I limit the join table fields when I user joins condition?

2009-03-31 Thread joshua
For example: One task has many users. $condition = array(); $condition['joins'] = array( array( 'table' => 'users', 'alias' => 'User', 'type' => 'inner', 'foreignKey' => 'user_id',

Re: media view and files on the fly

2009-03-31 Thread Matt Curry
I had to do this with pdf/xls files returned by a webservice. I took the default media view (/cake/libs/views/media.php) and copied it to / app/views/app_media.php. Then I modified it so that it checked for a $content view var and wrote that to a tmpfile. Here's the diff: http://bin.cakephp.org/

Re: How to silently redirects to login page ?

2009-03-31 Thread John Andersen
By the way, you probably have to add the following in the app_controller->beforeFilter in order to ensure that the user has access to the logout action :) $this->Auth->allow('logout'); Enjoy, John On Mar 31, 3:13 pm, iFeghali wrote: > Hello All, > > Many thanks for the help so far. Le

Re: How to silently redirects to login page ?

2009-03-31 Thread John Andersen
In your case I would change your route "/" as I specified earlier and in the app_controller->beforeFilter function, add: $this->Auth->loginRedirect = array('controller' => 'foo', 'action' => 'index'); Thus when a user provides a valid login, the user is automatically directed to "/foo/inde

Re: I need to compare how I work to how you work

2009-03-31 Thread Delirium tremens
omg Martin, I am relieved! Sometimes, my posts don't make sense or ask too much or nobody finds interesting (or like you said are asked at the wrong time) or whatever, but I know from your post that this time it went alright!!! By the way, there is a link to reply to author... should I use it AND

Re: How to silently redirects to login page ?

2009-03-31 Thread iFeghali
Hello All, Many thanks for the help so far. Let's try to be a bit more clear... that's my scenario: 1) only authenticated users have access to the site (but the login form, of course) for a visitor (non auth user): 2) example.com should redirect to example.com/users/login with no error message

Re: media view and files on the fly

2009-03-31 Thread Martin Westin
I have so far lest MediaView alone and gone a different way for "fake", dynamic, files. I have made use of parseExtensions to output files. The examples mostly show rss feeds but you can just as easily use it to generate an Excel sheet full of statistics about something on your site or any other

Re: Adding/Deleting HABTM on existing records

2009-03-31 Thread RyOnLife
That's how I handle my deletes. If you don't want to read the existing relationships before your save (meaning you don't want Cake to delete existing relationships before inserting new ones), in the models where you define the HABTM associations, set the 'unique' array key to 'false' and you'll n

Re: I need to compare how I work to how you work

2009-03-31 Thread Martin Westin
The thing with Google Groups is that it is a mailing list that many people access like a forum... I think people don't page back to "yesterday" and read every message since their last login as many do in forums. I know I don't. This is a debated god / bad aspect of the group. The time and day y

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-31 Thread Martin Westin
For public knowlegde in case anyone does a search for similar problems: The problem jmdesign was experiencing was dure to a missing RewriteBase since the website was hosted under a user account. ( www.example.com/~username/ ) Setting the RewriteBase to /~username/ in both the cake root folder (=

Re: Adding/Deleting HABTM on existing records

2009-03-31 Thread mscdex
For deleting, you can use the model function deleteAll to remove directly from the join table, as long as you know both IDs. Example (if you haven't specified a different join model name): $this->Question->GamesQuestion->deleteAll(array('question_id' => $q_id, 'game_id' => $g_id), false); Where

Double left join?

2009-03-31 Thread Richard
Hi, I'm fairly new to CakePHP so if this is a stupid mistake forgive me. A user will post a complaint against a company, so the complaint table has company_id. I use a left join to get the company data. Then the company has a field category_id which is simply the industry of the company (categor

Re: Querying / filtering an array done by find('threaded')

2009-03-31 Thread toka...@gmail.com
Okay, I got it!! I don't know if there is some Cake's better solution but this works fine for me I have made my own function that goes trough the whole threaded array and extracts childs for top level section specified by ID. /** * Extracts child node(s) for specific top level section id

Re: How to silently redirects to login page ?

2009-03-31 Thread John Andersen
I misunderstood you! My solution is to use a route, defined as: Router::connect('/', array('controller' => 'users', 'action' => 'logout')); in my routes.php, thus any access at the root gives me the login form using the users controllers logout function, which contains only: $this->Se

Re: Webroot problem when accessing cake app through service provider's SSL

2009-03-31 Thread karma
I can get the system to work with a VERY ugly fix: In layout if i replace these: echo $html->css('cake.generic'); => echo preg_replace( "/ssl/", "thesite.com", $html->css('cake.generic') ); echo $content_for_layout; => echo preg_replace( "/ssl/", "thesite.com", $content_for_layout ); etc. But

Re: Webroot problem when accessing cake app through service provider's SSL

2009-03-31 Thread karma
Thanks for your help! I still can't get it to work however. I tried any possible settings in the .htaccess. The problem is that cake defines the webroot directory in views as "/ ssl/application_name/" when it shoud be because of the SSL "/ thesite.com/application_name/". Because that directory

I need to compare how I work to how you work

2009-03-31 Thread Delirium tremens
Hi! Once, I created a topic here, asking for help, then I got one reply. Unfortunately, it was not enough help to solve the problem. I kept posting my progress, waiting for a reply and I must have posted three times, but I waited days to get one reply again. Fortunately, It was enough help to sol

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-31 Thread jmdesign
Hi Martin, Thanks for your offer, email on it's way to you. James --~--~-~--~~~---~--~~ 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 t

Re: How to silently redirects to login page ?

2009-03-31 Thread Martin Westin
Since you only mentioned a problem on the "index page" I did not go into anything more complicated. You can either remove it from the session before displaying the login screen. Then it will pop up anywhere else. Alternatively you can make an if-clause: if ( $this->Auth->user() ) { // user

Re: How to silently redirects to login page ?

2009-03-31 Thread burzum
$this->Auth->authError = null? But in my opinion its a real bad idea to redirect an already logged in (!) user to a login again. That will look to the user like the app is acting wrong and is confusing. If hes logged in but not allowed to access a certain area he should get a notice that can't be

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-31 Thread Martin Westin
Since "php_value" was causing the 500, perhaps you should try "restoring" the .htaccess files to the ones from the "old" server (but without the php_value naturally). The 1.1 files have to be downloaded from the svn repository afaik. https://trac.cakephp.org/browser/branches/1.1.x.x You can "open

Re: Where to DL RC2?

2009-03-31 Thread majna
https://svn.cakephp.org/repo/tags On Mar 31, 8:55 am, rocket wrote: > I can't find the link to download Cake 1.2 RC2. I'm trying to run a > site that was built on RC2 that doesn't work with the current release. > Can anyone direct me? > > thanks --~--~-~--~~~---~--~--

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-31 Thread jmdesign
Okay I've found a version of 1.1.12 and copied across the htaccess files from that but it's still reading a 404 error. Thanks, James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this g

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-31 Thread jmdesign
Hi Jon, Okay I'll try downloading the 1.1 htaccess files, stupid question but where do I get them from? I can only see the 1.2 download links on the main Cake site? The only log files I've got access to are the standard erorr logs which aren't picking up anything now. Thanks, James --~--~

Re: How to silently redirects to login page ?

2009-03-31 Thread logout
Well, you can do some additional checks and remove the error message from the session when you don't want it displayed. This should happen in the afterFilter() callback of the appropriate controller I think. On Mar 30, 8:26 pm, iFeghali wrote: > Hello, > > I have followed [1] to get a simple log