
Grandioso
Members-
Posts
98 -
Joined
-
Last visited
Everything posted by Grandioso
-
I just built a new app and I used the same shopping cart class I created in a previous app. This way when I add something in the old app's shopping cart, it also shows up my new app's cart Any ideas how can I solve this ?
-
Sweeeet. I've already implemented cycle, but next time I'll use one of those two for sure ! Thanks.
-
No way... I'm such dumbass I would have sworn I got it right. Thanks, mate.
-
So I'm coding this application and I got stuck because preg_match just does'n wanna cooperate. First it didn't want to match my email, which is weird, because I used this regex before. Then started to debug it and I dumbed it down to preg_match('a','/a/'), but it would always give me this warning > Warning: preg_match(): Delimiter must not be alphanumeric or backslash and return false. What am I doing wrong ?
-
OK, I'm done with cake. Shit almost drove me crazy. Moving on to CodeIgniter.
-
I've encountered another problem. I've created my model, controller and view for my DB table not following the naming convention. I've successfully set the model to use the table, but when I create a form in the view, it is given the wrong action parameter. So how do I set which controller should handle my form from the view ? I can't follow the naming convention, because the app is not in english.
-
Now I have an encoding issue. Table sorting is set to utf-8_slovak_ci and all table cols' encodings are set to utf-8_slovak. But when I read from the database and output it on the page, I get qmarks and other weird characters instead of slovak special chars. Cake's core.php says : Configure::write('App.encoding', 'UTF-8'); Where's the problem then ? //got it, I didn't know I had to specify it also in database.php
-
I already solved this, but I've got more questions. I want to create a model to a DB table in which there are columns with not just single word titles. The column titles contain non-english words and some of them are two words (I would create them with an underscore between the words). Does automagic cover this ? ('this' meaning it can convert underscores to spaces a non-english characters to english ones (like č to c, š to s)). Then another one : what happens if I don't follow the naming convention ? I have a database table and I need to assign it the model, view and controller. How do I do this ?
-
I did a lotta search on this, but I didn't find any reasonable solution. All I want to do is have urls to static pages like : www.domain.com/mypage and the 'mypage' item highlighted in the navigation and the title to be 'My Page' (just an example). Now I could do this just by putting my .ctp files in the 'pages' folder, but the the urls would be like : www.domain.com/pages/page. So I created custom routes. It works, but I want to perform a custom action (set the page title and a variable) before the page renders. I figured I could customize the default "Pages" controller, but it doesn't work I create the appropriate methods, they run just as they should, but they don't send the page title like they should. I don't believe that such a primitive task can be so complicated. D'OH. //edit allright now, the page title works. I just need to figure out how can I set a variable in the controller and read it in the layout without having a model.
-
The cycle plugin looks really cool. I'll give it a try, thanks.
-
I'm currently looking for a JS slideshow (a very concrete one) with the following parameters : -one large image with either miniatures/dots (links to other images in gallery) underneath -handles different image sizes (or same sizes, but reversed ratios - 640x480 & 480x640) -automatic and manual sliding -free I found loads of them, but none of them did what I need. Please, help me out here.
-
Oh, come ooooon. Nobody ?
-
.ctp is a file extension used by the cakePHP framework. BTW nevermind. I found out it only didn't recognize the files that were created before I added .ctp to the list of files to be handled as .php. So I created new files, pasted the content of the old ones and it works now. jEdit is simply perfect now (you can mark this as solved)
-
Hey guys. I just recently found the editor of my dreams - jEdit. It only has one flaw - I can't seem to make it highlight any .ctp file syntax as php. I did the following : "Options" -> "editing", chose php, unchecked "use default", changed "file name glob" to "*.{php3,php4,php,phtml,inc,ctp}", saved, restarted app... but still nothing. Any ideas ? I use Ubuntu 10.04
-
Hi guys. I'm learning cakePHP and I (will) have a couple of stupid questions. So first of all, how do I add a "selected" class to a menu item that points to the current page and how do I create a title for the current page ? I created a default layout, and all the pages. Then I created the routes in 'app/config/routes.php' like "Router::connect('/contact', array('controller' => 'pages', 'action' => 'display', 'contact'));". It works just fine, but I have no idea how to add "selected" to the currently selected menu item and how to create a custom title for the page. It would be great if I could just pass the "title" and "selected" string in this array. Is it possible ?
-
I'm currently working on a project and I thought about using a framework. There are 4 static pages and a simple e-shop. I started thinking about it after a friend told me he used cakePHP and he really liked it. Which FW would you recommend ? Which one has the best perspective (I don't want to waste time on some PHP4-based crap) ?
-
I tried putting the same htaccess file on the server and it doesn't work. I guess it's not possible to change it then, is it ?
-
I've tried both the methods, but none of them works for me. 1. I have a form, which is handled by a php script. I put "ini_set('upload_max_filesize', 600)" in it (with "600M" (without quotes) it would throw an unexpected string error, with quotes doesn't work either) 2. I created a .htaccess file and put "php_value upload_max_filesize 600M" (w/o qts) in it, and it doesn't work either.
-
OK, I found it in "phpinfo()" output. Can I change it on a remote server (maybe with .htaccess) ??
-
What's the maximum file size I can upload through a regular form ? If it's server dependant, how do I find out my max ? I tried to handle a 550MB file (on localhost) - I only wanted to show the filename, but it hung up for about 10secs, then returned nothing.
-
Anyone knows a free SMS gateway ?
-
The font looks a lot cleaner and readable than on Firefox because the CSS doesn't work. fixed I guess I'll look for a font that fits in and looks good on windows
-
Really ? Then what are your recommended browsers ? There are 5 major browsers out now and one of them sucks. And if you think otherwise... I have nothing more to tell you. Can you imagine if you browsed to Google and a message was on the screen saying, "We couldn't be arsed testing this site for your web browser. None of us here like your browser so you better upgrade it to something else. Don't come back to our website becasuse we don't care about you at all!" Ummm, actually, I can ! Could anyone please give me a screenshot of what you see. I'm on ubuntu and the font looks OK, no blur or anything. You convinced me... I'm removing the first paragraph. I would like to put up some comparing screenshots, but I don't have IE6 (I'm on ubuntu as I said) and I wouldn't like to waste much more time on this website. Does anyone happen to have something useful for me ?
-
@ font - Maybe I have a weird taste, but I like it and this one fits the best with the design (of all the fonts I had in my PC when designing it). I've noticed some readability issues on windows because of rendering - I've increased the size to 18px. Is it better now ? @ignorants - You sure ? I know a lotta people who don't know what a WB is (people who just push the on/off button on their PC and click the mouse) On the other hand...I'm not sure if they would even bother trying to upgrade thei browser. Anyway, I don't think the fact that I point out what a browser is would offend anyone so I'm keeping it. @jargon - A LOT ?!? I've only mentioned it once, dude. The problem is, that the popular websites are IE6-optimised, or aren't they ? And that is exactly the point of this site. People see it in their browser, compare it with the screenshot and if they aren't satisfied with what they see... well then they must know what to do...
-
I've made this site using only 2 images and CSS3. It looks absolutely horrible in IE8 (on purpose). I'll put it on all my websites so all my visitors can see it. http://upgrade.grandioso.org/english.html I've used the following CSS3 stuff : text-shadow, box-shadow, gradient, font-face, transform, multiple backgrounds, border-radius So what do you think ?