This is I think my second post on the Yii forums. I have a pretty good background in PHP/web technologies. I am in the process of building a couple new websites (having only done a couple before) and I decided I would try to learn an MVC framework to expand out my skills. Well, to tell the truth, I kinda had to learn one as I needed to grasp RAD and e-commerce site best practices as one of the sites will be fairly large I think (selling various products).
Anyway, I started to learn ZEND. And I continued to learn it. Then I finally gave up as learning it was just too damn difficult. The issue was not my capacity to learn the technical side of it - the issue was that ZEND (what from point of view as an MVC newbie) is massively complex, completely unintuitive and very badly supported. I have tried and failed to get questions answered. Not difficult questions. Again, the problem seems to be that the support is just not out there. Anyway, after a hissy fit, I decided I would learn a different framework as ZEND just seemed a massive headache (and I had read posts from ZEND hardliners/contributors that they too were giving up on it and that ZF2 was even more trouble than ZF1). I had a look around on Google and kept seeing Yii as one of the highest regarded frameworks, so I thought I would give it a go.
Right from the start, I was amazed at the difference in ease of use and support there is compared to ZEND. I could spend a day studying and end the day feeling I had gotten a proper understanding of something, rather than just sitting there frustrated and confused.
Anyway, thanks to everyone that contributes to Yii and those who support the community. Even though I am still in relatively early stages with it, it seems a joy to use.
OK, why did I type that all out? Well, I would imagine I am going to have a fair few questions come up as I am just starting to develop my first real-world application in Yii. And, along with that, I will no doubt have a load of questions while I learn to master the Yii framework. What I am trying to say is that I am not coming here asking people to show me how to do everything. I have read the definite guide (twice, about to start it a third time) and the cookbook. But often I still want to fire questions to experts (or, at least, those more experienced than I!) so I can make sure I understand best practices.
So, first question…
Class ‘zii>widgets>CMenu’ is the default for creating navs.
The issue I have right now is that the top nav of the website I have already designed and am in the process of moving over to Yii uses a series of inline pngs files layed out as…
These are icons that I designed myself and are very much a part of the style of the page. In short, they are here to stay. The img tags have a next PHP script in them to add an ‘active’ class to them if the anchor URL is that as the same name basename of the current script. The ‘active’ class simply changes the background of the img to show it is the active page.
So, the (rather long-winded) question is…
How is this best incorporated into Yii? Should it just stay as it is and are there there any implications if it does?