Thank you for having an interest of enhancing the blog demo, moho.
I am using the latest version of the yii, i.e. version 1.1-dev-r956 in SVN, though I was not aware that my code was deprecated since the demo has been working so far (to me ).
In terms of "category", as it is much like tag cloud, I have not ever developed such functionality. If you do, please open it to the public.
I got your point. First of all, I would like to delete the position parameter, because it may be useless. It means that the code piece in the 'protected/views/layouts/main.php' is as follows.
Then, in terms of your point that there may be no main.css in the HTML source, there sure is.
I am using nice extension of extendedClientScript, that can compress js/css files. It means that you can see following lines in the HTML source, these css files such as highslide.css and main.css are merged into one css named c_76d5…3293.css.
CHtml::cssFile() can be useful for snippets with extended CSS, but for normal use the registerCSSFile() is a better option indeed, especially when the CSS file is to be included every time.
Will check out the new R17 soon, and perhaps create some modules for it too. About the categories: that can be nice, since it will help converting it to a simple CMS instead of a blog.
@mocapapa: Was wondering: in the demo Blog some models were adjusted (Tag, Post). Also some _form views. How closely do you follow the changes in the demo blog? Strict or will you follow a more independent approach?
@mocapapa: Was wondering: in the demo Blog some models were adjusted (Tag, Post). Also some _form views. How closely do you follow the changes in the demo blog? Strict or will you follow a more independent approach?
I am not sure what you mean, but you are wondering that I am following the changes of the original blog demo or not, right? Actually, I check the blog demo some time but do not recognise the need for changing my extension. I think there only was a minor change in terms of the algorithm so far.
Notice the forward slash after 251b079c?I think it is a bug under Windows box. I will try it under my apple machine to see if it is a Windows-only bug.
Thank you again.
Update: I looked at the extendedClientScript.php and found the author is using:
“DIRECTORY_SEPARATOR”.
I changed it to '/' and everything works like a charm. I think we do not need to use that constant according to
About our little friend 'DIRECTORY_SEPARATOR': I normally don't use it in my work, but since Yii is full with DIRECTORY_SEPARATOR, I thought it would help to stay compatible in other environments.
I will skip it in a new version. It's kinda strange it's not giving you trouble on other places.
Here's a little clarification on DIRECTORY_SEPARATOR as i know it.
DIRECTORY_SEPARATOR is supposed to provide the correct slash ("/" for *nix or "" for Windows) for the file system for the OS on your box. When you are accessing something via HTTP, the slash should always be "/".
So in simpler terms, always use DIRECTORY_SEPARATOR only when you are concatenating a file-system path, but never use it when you are referencing a HTTP path - these are ALWAYS "/".
Wow! I could not convert this enhance blog to module. I keep getting 404 and have no clue. Matter of fact even my Default module created using Yicc tools gives me 404. Any help - thanks.