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
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
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
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
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
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
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
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
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?
--~--~-~--~~~---~--~~
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
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' =
$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
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
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
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
[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
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
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
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
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
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
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
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
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' =
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
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 {
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 {
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
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();
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
30 matches
Mail list logo