[Solved] BETTER WAY #PHP MVC [closed]

A Controller is the glue between your business logic and the requests made. Although it can contain quite a few functionalities, they should all be specific to the target request in question. A a small description of a controller, you will find similar cases as: Controllers are the glue that binds models, views and other … Read more

[Solved] Codeigniter wrong url to redirect 404

Try this public function read($slug_posts) { $options = $this->options_model->listing(); $posts = $this->posts_model->read($slug_posts); if ( ! $posts) { show_404(); } #$listing = $this->posts_model->home(); $data = array( ‘title’ => $posts->post_title.’ – ‘.$options->option_title, ‘description’ => $posts->post_description, ‘posts’ => $posts, #’listing’ => $listing, ‘content’ => ‘posts/read’ ); $this->load->view(‘layout/wrapper’, $data, FALSE); } If truly understand what your question is, this … Read more

[Solved] x == y ? “1” : “5” How to use?

I think your main issue is that you’re always passing the disabled attribute. You shouldn’t pass this attribute if you want the radio button to be enabled. <label><%: Html.RadioButtonFor(model => model.UserInfo.DeliveryCode, “1” , Model.ChargeREFCode == “5” ? (object)new { id = “DC1” , disabled = “disabled” } : new { id = “DC1” })%>受信する</label> Regarding … Read more