Re: User Bar Logic

2006-08-20 Thread John Zimmerman [gmail]
I am pretty sure I have something in one of my apps setting variables in app_controller and readin the info in the default template. I will double check.What I am doing for login info though is setting it in the session and then checking for it in the default template. So you can always set a

Re: User Bar Logic

2006-08-20 Thread JensWiese
I had the same problem and build a component which is rendered in the main template. works fine. Jens --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: User Bar Logic

2006-08-20 Thread AD7six
Hi All, Let's look at it this way: 1) If a line of code like $this-set('Foo',$bar); is executed by any controller, a variable named $Foo will be available in the view/layout with the contents $bar. 2) If you define a method in your app_controller and in one of your controllers you override the

Re: Alternating Row Colors

2006-08-20 Thread AD7six
Hi All, why not use the html helper for this, that's what the tableCells method seems to be for..? You can see an example here: http://wiki.cakephp.org/tutorials:i18n#messages_dynamic_content Note that if you have cake pre 3228, the count declaration in the html helper is incorrect and should

Invitation 4 U

2006-08-20 Thread DecentCuteGirl
Hi Dear Members, THNX 4 using Yahoo Groups I have also started following new groups I invite you to join my following groups IF YOU ARE LOOKING FOR JOBS, JOIN OUR FOLLOWING YAHOO GROUP A2ZHRINFOSERVICES, WE WILL POST JOBS IN YOUR EMAIL

Re: url and routing

2006-08-20 Thread [EMAIL PROTECTED]
darx wrote: Hi bakers, i know it's been asked before but none of the threads was so claryfing. I know exactly what you mean :) I've gone through about 20 topics on this group, of which most ones end up in pointing to the same solution (which is ad7six locale package) I also noted this pretty

Re: url and routing

2006-08-20 Thread Felix Geisendörfer
Hi, I find this topic quite interesting myself and as far as internationalized urls go I came to one conclusion: It's insane! The amount of work you have to put into it, in order for it to work throughout your entire system is incredible. Now you only want to do it for 1 language and 1

Re: url and routing

2006-08-20 Thread [EMAIL PROTECTED]
Uhm, afaik, every url must do a pass trough the routing system, so if you put all your mapping , or filtering logic in there, you can change it there, and only there, in case anything needs to changed (please, correct me if i'm wrong) and yes, imo the user benefits from an url in his own

libmm.so.13: cannot open shared object file

2006-08-20 Thread jonee
i was running the acl script when i got this error- php: error while loading shared libraries: libmm.so.13: cannot open shared object file: No such file or directory i am using a xampp installation on slackware. anyone else had this too? --~--~-~--~~~---~--~~

Re: url and routing

2006-08-20 Thread mouth
kitten wrote: This works fine, except for saving $lang to session -- the session is not yet available at this point. pr(get_declared_classes()); in routes.php shows me class CakeSession is declared already --~--~-~--~~~---~--~~ You received this message

Re: url and routing

2006-08-20 Thread mouth
Any ideas? //file app/config/routes.php $routes = array( '/' = array('controller' = 'pages', 'action' = 'display', 'home'), '/page/*' = array('controller' = 'pages', 'action' = 'display'), '/language/*' = array('controller' = 'pages', 'action' =

Re: url and routing

2006-08-20 Thread mouth
$Route-connect('/'.$language.'/:controller/:action', array('language' = $language)); has to be $Route-connect('/'.$language.'/:controller/:action/*', array('language' = $language)); --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: url and routing

2006-08-20 Thread nate
Uh guys? Why not just use HTTP_ACCEPT_LANGUAGE? That's what its there for. --~--~-~--~~~---~--~~ 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

Re: url and routing

2006-08-20 Thread [EMAIL PROTECTED]
As promised, here is my solution. fresh from the kitchen, so it needs some cooling down. but it's eatable i think (at least it tastes good to me!) in routes.php add this _BEFORE_ your routes include_once(translate.php); $from_url = translate($from_url); then create

Re: url and routing

2006-08-20 Thread AD7six
Wow, an interesting debate :). I too have been considering i18n URLs, and also concluded that it was too much work. I have to agree with Felix, nobody except 'power' users and developers looks at the url, so it's pretty much pointless anyway. The routing part isn't really a problem, as you can

Re: url and routing

2006-08-20 Thread darx
[EMAIL PROTECTED] happy it's not just a problem of mine and if you can, please post you code with split $from_url. I need some good examples from which to learn ;) Felix, mouth I agree with you guys. We don't need to translate URL: common user doesn't care about it. But i need to categorize

Re: url and routing

2006-08-20 Thread [EMAIL PROTECTED]
http://cakephp.org/pastes/show/5f136ad39fe38b274fd2090c2a24c5d7 this will be easier to copy/paste from (mind you, at line 51 there is a newline, but the backslash isn't shown) Felix and mouth. i haven't mentioned this before, but the app i'm building is a project for school, and i thought it

Re: Trying CakePHP for the first time and get error

2006-08-20 Thread [EMAIL PROTECTED]
I used Winzip. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more

Re: url and routing

2006-08-20 Thread Felix Geisendörfer
Hi, darx: Having the language code in the url makes total sense, is perfectly RESTful, simple to do, and highly recommended from my site. I did it before on fg-webdesign.de and it works well for that purpose (it's a small static site using texilte as markup). Dieter: Alright, as I already

Re: url and routing

2006-08-20 Thread [EMAIL PROTECTED]
Dieter: Alright, as I already tried to communicate numerous times, I'm not criticizing you for trying to build a website with i18n url's, I criticized the available ways of achieving it - concluding in the opinion that it's not worth it for me. You do a web site for school, you might enjoy

Re: Debug working with IE but not Firefox

2006-08-20 Thread [EMAIL PROTECTED]
I had the same problem... the debug 2 wasn't working at all... thanks mate for the tip --~--~-~--~~~---~--~~ 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

Re: Pagination for hasMany assocation

2006-08-20 Thread fr33dom
Hey again, Just checking to see if anyone had any thoughts on this issue. If it has been discussed and answered before I do apologise, a reference to that discussion / resource would be much appreciated. Cheers, Freedom --~--~-~--~~~---~--~~ You received this

Re: Pagination for hasMany assocation

2006-08-20 Thread nate
Pagination is being added to the core in Cake 1.2. Using 1.2 you can set up basic pagination on models or associated models by doing the following in your controller: var $paginate = array('limit' = 20, 'order' = ...); // Anything you can pass to Model::findAll can be set here That's to set

Re: Re: Pagination for hasMany assocation

2006-08-20 Thread Samuel DeVore
You, my good sir, are a tease ;) On 8/20/06, nate [EMAIL PROTECTED] wrote: Pagination is being added to the core in Cake 1.2. Using 1.2 you can set up basic pagination on models or associated models by doing the following in your controller: var $paginate = array('limit' = 20, 'order' =

Re: Re: Pagination for hasMany assocation

2006-08-20 Thread Mikee Freedom
fantastic, thanks for the heads up. On 21/08/06, Samuel DeVore [EMAIL PROTECTED] wrote: You, my good sir, are a tease ;) On 8/20/06, nate [EMAIL PROTECTED] wrote: Pagination is being added to the core in Cake 1.2. Using 1.2 you can set up basic pagination on models or associated

Re: User Bar Logic

2006-08-20 Thread Simplerules
No matter what I do it won't work here is the code: //Get User Data; $Profile = $this-Session-read('User'); if(isset($Profile['Username'])) { $this-set('logged_in', TRUE); $this-set('username', $Profile['Username']); } else {

Re: User Bar Logic

2006-08-20 Thread Simplerules
No matter what I do it won't work here is the code: //Get User Data; $Profile = $this-Session-read('User'); if(isset($Profile['Username'])) { $this-set('logged_in', TRUE); $this-set('username', $Profile['Username']); } else {

Re: Alternating Row Colors

2006-08-20 Thread sicapitan
AD7 is right, tablecells does this automatically, and you can set the claternating colours $html-tableCells($tr, array('style'='background:#E4E4E4'), array('style'='background:transparent')); --~--~-~--~~~---~--~~ You received this message because you are

Return field from second joined table

2006-08-20 Thread ShepherdWeb
Color and Product are hasAndBelongsToMany to each other Product belongsTo Category Category hasMany Product I'm using this code to show products by color: $this-Product-Color-id = $color_id; $data = $this-Product-Color-read();

Re: bindModel conditions causing problems

2006-08-20 Thread fr33dom
Is this a bug or am I being a daft twit? I tried to have a look in the dbo code to see why it was wrapping the id with ' twice but couldn't seem to find it. i'm a bit loathe to modify the core application code anyway as i'm looking forward to the next release. cheers, freedom