Wow, thanks again for the amazing explanation!
The problem was with my server, it was encoding in ANSI, also the database
in MySql (phpmyadmin) was misleading somehow. It showed that it's UTF-8,
but for some reason it was in north american ANSI.. Managed to change that,
thanks to you.
Definately go
On Sat, Dec 8, 2012 at 4:50 AM, Trisztán Thar wrote:
>
> lowpass:
> Actually, I did, and it has problems with my non-english characters, it
> doesn't display them.. Maybe server configuration? I'm using EasyPHP as my
> server.
There are a number of stages where character encoding can cause
proble
Thank you Tim, again, worked great :) Really helpful community here :)
lowpass:
Actually, I did, and it has problems with my non-english characters, it
doesn't display them.. Maybe server configuration? I'm using EasyPHP as my
server.
2012/12/7 Tim Denholm
> Hi Tristan,
>
> To add class names,
Try writing a plain PHP script (not Cake) that fetches the records and
prints them to the browser. That might help to narrow down where the
problem lies.
As for using divs like that, it's not very good use of HTML.
On Fri, Dec 7, 2012 at 4:17 PM, Trisztán Thar wrote:
> Hey there lowpass,
> Thank
Hi Tristan,
To add class names, just alter your $menu array as follows:
$menu = array(
'options' => array('class' => 'menuitems'),
'items' => array(
array('title' => 'Hirek', 'url' => array('controller' => 'posts',
'action' => 'index'), 'options' => array('class' => 'button1')),
Hey there lowpass,
Thanks for this full-fledged explanation, it helped me understand how
CakePHP works, and i finally am able to use it for (at this time) basic
things, on my own :)
About the character thing:
After all I managed to make my menu with the helper that Tim mentioned
above, but I have a
Are you certain that the characters have been inserted into the
database correctly? Check that the character encoding is correct for
the database and the individual tables.
You may also need to check that the browser is correctly rendering the
page. Look in the browser's View menu, or check with F
You seem to have a few of the concepts wrong here. I'll try to explain.
> foreach ($menu as $Menu):
This is where the error is happening. The problem is that, in the
controller action, you created a view variable named $Menu. But your
code here is looking for an array named $menu. You have it bac
One more thing:
I have used this helper, but i have discovered that it won't list menu
items that have a special character in them. You know, I'm from Hungary, we
have characters like: é, í, á, ű, ő, ú etc.. So if a menu item contains any
non-english character, it treats it like if it wouldn't b
Thank you Tim, worked like a charm.
I'll definately read the info you've given me about MVC, and hopefully will
understand it in no time :)
Have a nice day!
Tristan
2012. december 6., csütörtök 5:03:14 UTC+1 időpontban tim a következőt írta:
>
> Hi Tristan,
>
> You should implement this as a Hel
Hi Tristan,
You should implement this as a Helper. I recommend this one as an example
(I've used it myself): http://nooclear.com/content/cakephp-2x-menuhelper
Place this class in a file called MenuHelper.php in your /app/Views/Helpers
directory. Then add the following to /app/Controllers/AppCon
Hi Tristan,
You should implement this as a Helper. I recommend this one as an example
(I've used it myself): http://nooclear.com/content/cakephp-2x-menuhelper
Place this class in a file called MenuHelper.php in your /app/Views/Helpers
directory. Then add the following to /app/Controllers/AppContr
Hello
Please bear with my noobness, I am super new to CakePHP, and don't really
understand it yet.
So, I was messing around with default.ctp, of course to make a layout for
my site. I followed the Blog Tutorial, and I am planning to build my site
on that.
I'd like to add a navigation menu, wh
13 matches
Mail list logo